Skip to content

Commit 7b3db6f

Browse files
committed
Add test
1 parent 2801c2f commit 7b3db6f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/DebugInfo/debug_prefix_map.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
// RUN: %swiftc_driver -g -debug-prefix-map %/S=/var/empty %/s -emit-ir -o - | %FileCheck %s
1+
// 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
26

37
func square(_ n: Int) -> Int {
48
return n * n
59
}
610

711
// CHECK: !DIFile(filename: "/var/empty/debug_prefix_map.swift"
12+
// CHECK: !DIModule(scope: null, name: "Globals", includePath: "/var/empty/Globals.swiftmodule"

0 commit comments

Comments
 (0)