mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
test: adjust DebugInfo tests for new LLVM update
The filename on Windows now uses `\\` rather than `\\5C` for the path separator. Adjust the tests accordingly.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
// CHECK-DAG: ![[FOOMODULE:[0-9]+]] = !DIModule({{.*}}, name: "Foo", includePath: "{{.*}}test{{.*}}DebugInfo{{.*}}"
|
||||
// CHECK-DAG: !DIImportedEntity(tag: DW_TAG_imported_module, scope: ![[THISFILE:[0-9]+]], entity: ![[FOOMODULE]]
|
||||
// CHECK-DAG: ![[THISFILE]] = !DIFile(filename: "{{.*}}test{{/|\\5C}}DebugInfo{{/|\\5C}}Imports.swift",
|
||||
// CHECK-DAG: ![[THISFILE]] = !DIFile(filename: "{{.*}}test{{/|\\\\}}DebugInfo{{/|\\\\}}Imports.swift",
|
||||
// CHECK-DAG: ![[SWIFTFILE:[0-9]+]] = !DIFile(filename: "{{.*}}Swift.swiftmodule{{(/.+[.]swiftmodule)?}}"
|
||||
// CHECK-DAG: ![[SWIFTMODULE:[0-9]+]] = !DIModule({{.*}}, name: "Swift"
|
||||
// CHECK-DAG: !DIImportedEntity(tag: DW_TAG_imported_module, scope: ![[THISFILE]], entity: ![[SWIFTMODULE]]
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
// CHECK-DAG: ![[MODULE:[0-9]+]] = !DIModule({{.*}}, name: "NotTheStdlib", includePath: "{{.*}}test{{.*}}DebugInfo{{.*}}"
|
||||
// CHECK-DAG: !DIImportedEntity(tag: DW_TAG_imported_module, scope: ![[THISFILE:[0-9]+]], entity: ![[MODULE]]
|
||||
// CHECK-DAG: ![[THISFILE]] = !DIFile(filename: "{{.*}}test{{/|\\5C}}DebugInfo{{/|\\5C}}ImportsStdlib.swift"
|
||||
// CHECK-DAG: ![[THISFILE]] = !DIFile(filename: "{{.*}}test{{/|\\\\}}DebugInfo{{/|\\\\}}ImportsStdlib.swift"
|
||||
|
||||
// NEGATIVE-NOT: !DIFile(filename: "{{.*}}Swift.swiftmodule"
|
||||
// NEGATIVE-NOT: !DIModule({{.*}}, name: "Swift"
|
||||
|
||||
@@ -9,4 +9,4 @@ func square(_ n: Int) -> Int {
|
||||
}
|
||||
|
||||
// CHECK: !DIFile(filename: "/var/empty/debug_prefix_map.swift"
|
||||
// CHECK: !DIModule(scope: null, name: "Globals", {{.*}}includePath: "/var/empty{{(/|\\5C)}}Globals.swiftmodule"
|
||||
// CHECK: !DIModule(scope: null, name: "Globals", {{.*}}includePath: "/var/empty{{(/|\\\\)}}Globals.swiftmodule"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "macro_enum",
|
||||
// CHECK-SAME: file: ![[MACRO_H:[0-9]+]]
|
||||
// CHECK: ![[MACRO_H]] = !DIFile(filename: "{{.*}}{{(/|\\5C)}}Inputs{{(/|\\5C)}}Macro.h",
|
||||
// CHECK: ![[MACRO_H]] = !DIFile(filename: "{{.*}}{{(/|\\\\)}}Inputs{{(/|\\\\)}}Macro.h",
|
||||
|
||||
import Macro
|
||||
|
||||
|
||||
Reference in New Issue
Block a user