2 // RUN: %clang_cc1 -extract-api --pretty-sgf --emit-sgf-symbol-labels-for-testing \
3 // RUN: -x objective-c-header -triple arm64-apple-macosx %s -o - -verify | FileCheck %s
9 @property(copy, readwrite) id<MyProtocol> obj1;
10 // CHECK-LABEL: "!testLabel": "c:objc(cs)MyInterface(py)obj1"
11 // CHECK: "declarationFragments": [
13 // CHECK-NEXT: "kind": "keyword",
14 // CHECK-NEXT: "spelling": "@property"
17 // CHECK-NEXT: "kind": "text",
18 // CHECK-NEXT: "spelling": " ("
21 // CHECK-NEXT: "kind": "keyword",
22 // CHECK-NEXT: "spelling": "copy"
25 // CHECK-NEXT: "kind": "text",
26 // CHECK-NEXT: "spelling": ", "
29 // CHECK-NEXT: "kind": "keyword",
30 // CHECK-NEXT: "spelling": "readwrite"
33 // CHECK-NEXT: "kind": "text",
34 // CHECK-NEXT: "spelling": ") "
37 // CHECK-NEXT: "kind": "typeIdentifier",
38 // CHECK-NEXT: "preciseIdentifier": "c:Qoobjc(pl)MyProtocol",
39 // CHECK-NEXT: "spelling": "id<MyProtocol>"
42 // CHECK-NEXT: "kind": "text",
43 // CHECK-NEXT: "spelling": " "
46 // CHECK-NEXT: "kind": "identifier",
47 // CHECK-NEXT: "spelling": "obj1"
50 // CHECK-NEXT: "kind": "text",
51 // CHECK-NEXT: "spelling": ";"
56 // expected-no-diagnostics