2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2019-03-11 19:49:17 -05:00
|
|
|
// aux-build:issue-24687-lib.rs
|
2015-04-29 11:58:42 -05:00
|
|
|
// compile-flags:-g
|
2019-08-17 00:08:01 -05:00
|
|
|
// ignore-asmjs wasm2js does not support source maps yet
|
2015-04-29 03:21:47 -05:00
|
|
|
|
2019-03-11 19:49:17 -05:00
|
|
|
extern crate issue_24687_lib as d;
|
2015-04-29 03:21:47 -05:00
|
|
|
|
|
|
|
fn main() {
|
2019-03-11 19:49:17 -05:00
|
|
|
// Create a `D`, which has a destructor whose body will be codegen'ed
|
2015-04-29 03:21:47 -05:00
|
|
|
// into the generated code here, and thus the local debuginfo will
|
|
|
|
// need references into the original source locations from
|
|
|
|
// `importer` above.
|
|
|
|
let _d = d::D("Hi");
|
|
|
|
}
|