1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
2 __attribute((objc_root_class)) @interface NSObject {
18 @interface MyClass : NSObject {
21 @property (nonatomic, assign) id <MyProtocol> bad_carrier;
22 @property (nonatomic, assign) id good_carrier;
26 @implementation MyClass
33 MyClass *my_class = [MyClass alloc];
34 NSLog(@"%p\n", my_class.bad_carrier);
35 NSLog(@"%p\n", my_class.good_carrier);
38 // Verify that the debug type for both variables is 'id'.
39 // CHECK: ![[IDTYPE:[0-9]+]] = !DIDerivedType(tag: DW_TAG_typedef, name: "id"
41 // CHECK: !DILocalVariable(name: "bad_carrier", arg:
43 // CHECK-SAME: type: ![[IDTYPE]]
45 // CHECK: !DILocalVariable(name: "good_carrier", arg:
47 // CHECK-SAME: type: ![[IDTYPE]]