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.
1 parent 2801c2f commit 7b3db6fCopy full SHA for 7b3db6f
test/DebugInfo/debug_prefix_map.swift
@@ -1,7 +1,12 @@
1
-// RUN: %swiftc_driver -g -debug-prefix-map %/S=/var/empty %/s -emit-ir -o - | %FileCheck %s
+// RUN: %empty-directory(%t)
2
+// RUN: %target-swift-frontend -emit-module-path %t/Globals.swiftmodule %S/Globals.swift
3
+// RUN: %swiftc_driver -g -debug-prefix-map %/S=/var/empty -debug-prefix-map %t=/var/empty %/s -I %t -emit-ir -o - | %FileCheck %s
4
+
5
+import Globals
6
7
func square(_ n: Int) -> Int {
8
return n * n
9
}
10
11
// CHECK: !DIFile(filename: "/var/empty/debug_prefix_map.swift"
12
+// CHECK: !DIModule(scope: null, name: "Globals", includePath: "/var/empty/Globals.swiftmodule"
0 commit comments