1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
3 __attribute((objc_root_class)) @interface NSObject {
8 @interface BaseClass : NSObject
18 @implementation BaseClass
21 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "i"
22 // CHECK-SAME: line: 10
23 // CHECK-SAME: baseType: ![[INT:[0-9]+]]
24 // CHECK-SAME: size: 32,
26 // CHECK-SAME: flags: DIFlagProtected
27 // CHECK: ![[INT]] = !DIBasicType(name: "int"
28 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "flag_1"
29 // CHECK-SAME: line: 11
30 // CHECK-SAME: baseType: ![[UNSIGNED:[0-9]+]]
31 // CHECK-SAME: size: 9,
33 // CHECK-SAME: flags: DIFlagProtected | DIFlagBitField
34 // CHECK: ![[UNSIGNED]] = !DIBasicType(name: "unsigned int"
35 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "flag_2"
36 // CHECK-SAME: line: 12
37 // CHECK-SAME: baseType: ![[UNSIGNED]]
38 // CHECK-SAME: size: 9, offset: 1,
39 // CHECK-SAME: flags: DIFlagProtected | DIFlagBitField
40 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "flag_3"
41 // CHECK-SAME: line: 14
42 // CHECK-SAME: baseType: ![[UNSIGNED]]
43 // CHECK-SAME: size: 9, offset: 3,
44 // CHECK-SAME: flags: DIFlagProtected | DIFlagBitField