1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s 2*f4a2713aSLionel Sambuc// RUN: grep -F '@"OBJC_IVAR_$_I0._b0" = global i64 0, section "__DATA, __objc_ivar", align 8' %t 3*f4a2713aSLionel Sambuc// RUN: grep -F '@"OBJC_IVAR_$_I0._b1" = global i64 0, section "__DATA, __objc_ivar", align 8' %t 4*f4a2713aSLionel Sambuc// RUN: grep -F '@"OBJC_IVAR_$_I0._b2" = global i64 1, section "__DATA, __objc_ivar", align 8' %t 5*f4a2713aSLionel Sambuc// RUN: grep -F '@"OBJC_IVAR_$_I0._x" = global i64 2, section "__DATA, __objc_ivar", align 8' %t 6*f4a2713aSLionel Sambuc// RUN: grep -F '@"OBJC_IVAR_$_I0._b3" = global i64 4, section "__DATA, __objc_ivar", align 8' %t 7*f4a2713aSLionel Sambuc// RUN: grep -F '@"OBJC_IVAR_$_I0._y" = global i64 6, section "__DATA, __objc_ivar", align 8' %t 8*f4a2713aSLionel Sambuc// RUN: grep -F '@"OBJC_IVAR_$_I0._b4" = global i64 7, section "__DATA, __objc_ivar", align 8' %t 9*f4a2713aSLionel Sambuc// RUN: not grep -F '@"OBJC_IVAR_$_I0." = global' %t 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc@interface I0 { 12*f4a2713aSLionel Sambuc unsigned _b0:4; 13*f4a2713aSLionel Sambuc unsigned _b1:5; 14*f4a2713aSLionel Sambuc unsigned _b2:5; 15*f4a2713aSLionel Sambuc char _x; 16*f4a2713aSLionel Sambuc unsigned _b3:9; 17*f4a2713aSLionel Sambuc char _y; 18*f4a2713aSLionel Sambuc char _b4:3; 19*f4a2713aSLionel Sambuc char : 0; 20*f4a2713aSLionel Sambuc} 21*f4a2713aSLionel Sambuc@end 22*f4a2713aSLionel Sambuc 23*f4a2713aSLionel Sambuc@implementation I0 24*f4a2713aSLionel Sambuc@end 25