File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 4
4
// RUN: %target-swift-symbolgraph-extract -module-name Basic -I %t -pretty-print -output-dir %t/Output
5
5
// RUN: %FileCheck %s --input-file %t/Output/Basic.symbols.json
6
6
7
- // Verify that -target can be inferred
8
- // RUN: %empty-directory(%t/Output)
9
- // RUN: %swift-symbolgraph-extract -module-name Basic -I %t -pretty-print -output-dir %t/Output
10
- // RUN: %FileCheck %s --input-file %t/Output/Basic.symbols.json
11
-
12
7
public struct S {
13
8
public var x : Int
14
9
}
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %empty-directory(%t/Output)
3
+ // RUN: %target-build-swift %s -module-name Basic -emit-module -emit-module-path %t/
4
+
5
+ // Verify that -target can be inferred
6
+ // RUN: %empty-directory(%t/Output)
7
+ // RUN: %swift-symbolgraph-extract -module-name Basic -I %t -pretty-print -output-dir %t/Output
8
+ // RUN: %FileCheck %s --input-file %t/Output/Basic.symbols.json
9
+
10
+ // This test can only work for test configurations that aren't cross-compiling.
11
+ // REQUIRES: OS=macosx || OS=linux-gnu || OS=windows-msvc
12
+
13
+ public struct S {
14
+ public var x : Int
15
+ }
16
+
17
+ // CHECK: "kind": "memberOf"
18
+ // CHECK-NEXT: "source": "s:5Basic1SV1xSivp"
19
+ // CHECK-NEXT: "target": "s:5Basic1SV"
You can’t perform that action at this time.
0 commit comments