rust/src/test/codegen/remap_path_prefix/xcrate-generic.rs
Arlo Siemsen f86b078e2d Add hash of source files in debug info
* Adds either an MD5 or SHA1 hash to the debug info.
* Adds new unstable option `-Z src-hash-algorithm` to control the hashing algorithm.
2020-04-02 14:13:19 -07:00

14 lines
353 B
Rust

// ignore-windows
// compile-flags: -g -C metadata=foo -C no-prepopulate-passes
// aux-build:xcrate-generic.rs
#![crate_type = "lib"]
extern crate xcrate_generic;
pub fn foo() {
xcrate_generic::foo::<u32>();
}
// Here we check that local debuginfo is mapped correctly.
// CHECK: !DIFile(filename: "/the/aux-src/xcrate-generic.rs", directory: ""