File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
test/SymbolGraph/ClangImporter Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 3
3
// RUN: split-file %s %t
4
4
5
5
// RUN: %target-swift-symbolgraph-extract -sdk %clang-importer-sdk -module-name PartialSubmoduleExport -I %t/PartialSubmoduleExport -output-dir %t -pretty-print -v
6
+
6
7
// RUN: %FileCheck %s --input-file %t/PartialSubmoduleExport.symbols.json
8
+ // check the missing symbols separately to account for arbitrary ordering
9
+ // RUN: %FileCheck %s --input-file %t/PartialSubmoduleExport.symbols.json --check-prefix MISSING
7
10
8
11
// REQUIRES: objc_interop
9
12
@@ -67,6 +70,8 @@ static int groupATwo = 2;
67
70
#include " GroupBOne.h "
68
71
#include " GroupBTwo.h "
69
72
73
+ // Because GroupB was not exported by itself, this symbol should be missing
74
+ // MISSING-NOT: "precise": "c:GroupB.h@groupBVar"
70
75
static int groupBVar = 0 ;
71
76
72
77
//--- PartialSubmoduleExport/GroupB/GroupBOne.h
@@ -76,5 +81,5 @@ static int groupBOne = 1;
76
81
//--- PartialSubmoduleExport/GroupB/GroupBTwo.h
77
82
// Because GroupBTwo is not exported in the top-level module map,
78
83
// this shouldn't be in the symbol graph
79
- // CHECK -NOT: "precise": "c:GroupBTwo.h@groupBTwo"
84
+ // MISSING -NOT: "precise": "c:GroupBTwo.h@groupBTwo"
80
85
static int groupBTwo = 2 ;
You can’t perform that action at this time.
0 commit comments