1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
3 // Debug symbols for private ivars. This test ensures that we are
4 // generating debug info for ivars added by the implementation.
5 __attribute((objc_root_class)) @interface NSObject {
13 @interface Delegate : NSObject<Protocol> {
18 @interface Delegate(NSObject)
22 @implementation Delegate(NSObject)
26 @implementation Delegate {
30 - (void)g:(NSObject*) anObject {
35 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "foo"
36 // CHECK-SAME: line: 14
37 // CHECK-SAME: baseType: ![[INT:[0-9]+]]
38 // CHECK-SAME: size: 32,
40 // CHECK-SAME: flags: DIFlagProtected
41 // CHECK: ![[INT]] = !DIBasicType(name: "int"
42 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "bar"
43 // CHECK-SAME: line: 27
44 // CHECK-SAME: baseType: ![[INT:[0-9]+]]
45 // CHECK-SAME: size: 32,
47 // CHECK-SAME: flags: DIFlagPrivate