[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / clang / test / ExtractAPI / objc_property.m
blobf05584c885d91f8a07048281d32ac8c1e37b1dff
1 // RUN: rm -rf %t
2 // 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 %s
5 @protocol Protocol
6 @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 @end
12 @interface Interface
13 @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 @end
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 @end
26 // expected-no-diagnostics