27 lines · plain
1// RUN: rm -rf %t2// RUN: %clang_cc1 -extract-api --pretty-sgf --emit-sgf-symbol-labels-for-testing \3// RUN: -triple arm64-apple-macosx -x objective-c-header %s -o - -verify | FileCheck %s4 5@protocol Protocol6@property(class) int myProtocolTypeProp;7// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(pl)Protocol(cpy)myProtocolTypeProp $ c:objc(pl)Protocol"8@property int myProtocolInstanceProp;9// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(pl)Protocol(py)myProtocolInstanceProp $ c:objc(pl)Protocol"10@end11 12@interface Interface13@property(class) int myInterfaceTypeProp;14// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(cpy)myInterfaceTypeProp $ c:objc(cs)Interface"15@property int myInterfaceInstanceProp;16// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(py)myInterfaceInstanceProp $ c:objc(cs)Interface"17@end18 19@interface Interface (Category) <Protocol>20@property(class) int myCategoryTypeProp;21// CHECK-DAG: "!testRelLabel": "memberOf $ c:objc(cs)Interface(cpy)myCategoryTypeProp $ c:objc(cs)Interface"22@property int myCategoryInstanceProp;23// CHECK-DAG "!testRelLabel": "memberOf $ c:objc(cs)Interface(py)myCategoryInstanceProp $ c:objc(cs)Interface"24@end25 26// expected-no-diagnostics27