Skip to content

Commit a0e8103

Browse files
committed
Test CU directory is the work_dir
Make sure that we don't regress setting of the CU directory to the working directory.
1 parent 16c7188 commit a0e8103

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)