1 // RUN: %clang_cc1 -g -emit-llvm -triple x86_64-apple-darwin -o - %s | FileCheck %s
2 // Check that we emit the correct method names for properties from a protocol.
3 // rdar://problem/13798000
7 @interface NSObject <NSObject> {}
12 @protocol HasASelection <NSObject>
13 @property (nonatomic, retain) Selection* selection;
14 // CHECK: [ DW_TAG_subprogram ] [line [[@LINE-1]]] [local] [def] [-[MyClass selection]]
15 // CHECK: [ DW_TAG_subprogram ] [line [[@LINE-2]]] [local] [def] [-[MyClass setSelection:]]
16 // CHECK: [ DW_TAG_subprogram ] [line [[@LINE-3]]] [local] [def] [-[OtherClass selection]]
17 // CHECK: [ DW_TAG_subprogram ] [line [[@LINE-4]]] [local] [def] [-[OtherClass setSelection:]]
20 @interface MyClass : NSObject <HasASelection> {
21 Selection *_selection;
25 @implementation MyClass
26 @synthesize selection = _selection;
29 @interface OtherClass : NSObject <HasASelection> {
30 Selection *_selection;
33 @implementation OtherClass
34 @synthesize selection = _selection;