33 lines · plain
1// REQUIRES: x86-registered-target2// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S %s -o - | FileCheck %s3 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.7*/8 9@protocol Proto10@property (assign) id prop;11@end12 13@interface NSObject @end14 15@interface Foo : NSObject <Proto> { int x; } @end16 17@interface Bar : NSObject <Proto> @end18 19@implementation Foo20@synthesize prop;21@end22 23@implementation Bar24@synthesize prop;25@end26 27// CHECK: _OBJC_$_INSTANCE_METHODS_Bar:28// CHECK-NEXT: .long 2429// CHECK-NEXT: .long 230// CHECK-NEXT: .quad L_OBJC_METH_VAR_NAME_31// CHECK-NEXT: .quad L_OBJC_METH_VAR_TYPE_32// CHECK-NEXT: .quad "-[Bar prop]"33