]> git.lizzy.rs Git - rust.git/blob - tests/codegen/debug-compile-unit-path.rs
Rollup merge of #106446 - bzEq:fix-unwind-lsda, r=Amanieu
[rust.git] / tests / codegen / debug-compile-unit-path.rs
1 // compile-flags: -g --remap-path-prefix={{cwd}}=/cwd/ --remap-path-prefix={{src-base}}=/base/
2 //
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]]