2013-03-07 06:03:30 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -g %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
// Debug symbols for private ivars. This test ensures that we are
|
|
|
|
// generating debug info for ivars added by the implementation.
|
|
|
|
__attribute((objc_root_class)) @interface NSObject {
|
|
|
|
id isa;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@protocol Protocol
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface Delegate : NSObject<Protocol> {
|
|
|
|
@protected int foo;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface Delegate(NSObject)
|
|
|
|
- (void)f;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation Delegate(NSObject)
|
|
|
|
- (void)f { return; }
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation Delegate {
|
|
|
|
int bar;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)g:(NSObject*) anObject {
|
|
|
|
bar = foo;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
2013-03-20 07:10:14 +08:00
|
|
|
// CHECK: {{.*}} [ DW_TAG_member ] [foo] [line 14, size 32, align 32, offset 0] [protected] [from int]
|
|
|
|
// CHECK: {{.*}} [ DW_TAG_member ] [bar] [line 27, size 32, align 32, offset 0] [private] [from int]
|