1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -g %s -o - | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc__attribute((objc_root_class)) @interface NSObject { 4*f4a2713aSLionel Sambuc id isa; 5*f4a2713aSLionel Sambuc} 6*f4a2713aSLionel Sambuc@end 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc@interface BaseClass : NSObject 9*f4a2713aSLionel Sambuc{ 10*f4a2713aSLionel Sambuc int i; 11*f4a2713aSLionel Sambuc unsigned flag_1 : 9; 12*f4a2713aSLionel Sambuc unsigned flag_2 : 9; 13*f4a2713aSLionel Sambuc unsigned : 1; 14*f4a2713aSLionel Sambuc unsigned flag_3 : 9; 15*f4a2713aSLionel Sambuc} 16*f4a2713aSLionel Sambuc@end 17*f4a2713aSLionel Sambuc 18*f4a2713aSLionel Sambuc@implementation BaseClass 19*f4a2713aSLionel Sambuc@end 20*f4a2713aSLionel Sambuc 21*f4a2713aSLionel Sambuc// CHECK: {{.*}} [ DW_TAG_member ] [i] [line 10, size 32, align 32, offset 0] [protected] [from int] 22*f4a2713aSLionel Sambuc// CHECK: {{.*}} [ DW_TAG_member ] [flag_1] [line 11, size 9, align 32, offset 0] [protected] [from unsigned int] 23*f4a2713aSLionel Sambuc// CHECK: {{.*}} [ DW_TAG_member ] [flag_2] [line 12, size 9, align 32, offset 1] [protected] [from unsigned int] 24*f4a2713aSLionel Sambuc// CHECK: {{.*}} [ DW_TAG_member ] [flag_3] [line 14, size 9, align 32, offset 3] [protected] [from unsigned int] 25