1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S %s -o - | FileCheck %s
4 /** The problem looks like clang getting confused when a single translation unit
5 contains a protocol with a property and two classes that implement that protocol
6 and synthesize the property.
10 @property (assign) id prop;
13 @interface NSObject @end
15 @interface Foo : NSObject <Proto> { int x; } @end
17 @interface Bar : NSObject <Proto> @end
27 // CHECK: _OBJC_$_INSTANCE_METHODS_Bar:
28 // CHECK-NEXT: .long 24
29 // CHECK-NEXT: .long 2
30 // CHECK-NEXT: .quad L_OBJC_METH_VAR_NAME_
31 // CHECK-NEXT: .quad L_OBJC_METH_VAR_TYPE_
32 // CHECK-NEXT: .quad "-[Bar prop]"