4
4
// RUN: --emit-extension-symbol-graphs --symbol-graph-dir=%t/symbols \
5
5
// RUN: --product-name=Module -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules-cache \
6
6
// RUN: -triple arm64-apple-macosx -x objective-c-header %t/input.h -verify
7
+ // RUN: %clang_cc1 -extract-api --pretty-sgf --emit-sgf-symbol-labels-for-testing \
8
+ // RUN: --product-name=Module -o %t/ModuleNoExt.symbols.json -triple arm64-apple-macosx \
9
+ // RUN: -x objective-c-header %t/input.h
7
10
8
11
// --- input.h
9
12
#include " ExternalModule.h"
@@ -28,15 +31,20 @@ @interface ExtInterface
28
31
header " ExternalModule.h"
29
32
}
30
33
34
+ // Main symbol graph from the build with extension SGFs
31
35
// RUN: FileCheck %s --input-file %t/symbols/Module.symbols.json --check-prefix MOD
36
+
32
37
// MOD-NOT: "!testRelLabel": "memberOf $ c:objc(cs)ExtInterface(py)Property $ c:objc(cs)ExtInterface"
33
38
// MOD-NOT: "!testRelLabel": "memberOf $ c:objc(cs)ExtInterface(im)InstanceMethod $ c:objc(cs)ExtInterface"
34
39
// MOD-NOT: "!testRelLabel": "memberOf $ c:objc(cs)ExtInterface(cm)ClassMethod $ c:objc(cs)ExtInterface"
35
- // MOD-NOT: "!testLabel": "c:objc(cs)ExtInterface(py)Property"
36
- // MOD-NOT: "!testLabel": "c:objc(cs)ExtInterface(im)InstanceMethod"
37
- // MOD-NOT: "!testLabel": "c:objc(cs)ExtInterface(cm)ClassMethod"
38
- // MOD-NOT: "!testLabel": "c:objc(cs)ExtInterface"
39
- // MOD-DAG: "!testLabel": "c:objc(cs)ModInterface"
40
+ // MOD-NOT: "c:objc(cs)ExtInterface(py)Property"
41
+ // MOD-NOT: "c:objc(cs)ExtInterface(im)InstanceMethod"
42
+ // MOD-NOT: "c:objc(cs)ExtInterface(cm)ClassMethod"
43
+ // MOD-NOT: "c:objc(cs)ExtInterface"
44
+ // MOD-DAG: "c:objc(cs)ModInterface"
45
+
46
+ // Symbol graph from the build without extension SGFs should be identical to main symbol graph with extension SGFs
47
+ // RUN: diff %t/symbols/Module.symbols.json %t/ModuleNoExt.symbols.json
40
48
41
49
// RUN: FileCheck %s --input-file %t/symbols/[email protected] --check-prefix EXT
42
50
// EXT-DAG: "!testRelLabel": "memberOf $ c:objc(cs)ExtInterface(py)Property $ c:objc(cs)ExtInterface"
0 commit comments