We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d75f71 + c616f3b commit b7709d9Copy full SHA for b7709d9
test/SymbolGraph/infer-target.swift
@@ -0,0 +1,19 @@
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
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: target-same-as-host
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"
0 commit comments