We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16c7188 commit a0e8103Copy full SHA for a0e8103
src/test/codegen/debug-compile-unit-path.rs
@@ -0,0 +1,9 @@
1
+// compile-flags: -g --remap-path-prefix={{cwd}}=/cwd/ --remap-path-prefix={{src-base}}=/base/
2
+// ignore-tidy-linelength
3
+//
4
+// Ensure that we remap the compile unit directory and that we set it to the compilers current
5
+// working directory and not something else.
6
+#![crate_type="rlib"]
7
+
8
+// CHECK-DAG: [[FILE:![0-9]*]] = !DIFile(filename: "/base/debug-compile-unit-path.rs{{.*}}", directory: "/cwd/")
9
+// CHECK-DAG: {{![0-9]*}} = distinct !DICompileUnit({{.*}}file: [[FILE]]
0 commit comments