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