diff options
Diffstat (limited to 'src/test/debuginfo/auxiliary/cross_crate_spans.rs')
-rw-r--r-- | src/test/debuginfo/auxiliary/cross_crate_spans.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/debuginfo/auxiliary/cross_crate_spans.rs b/src/test/debuginfo/auxiliary/cross_crate_spans.rs new file mode 100644 index 000000000..efe5e4195 --- /dev/null +++ b/src/test/debuginfo/auxiliary/cross_crate_spans.rs @@ -0,0 +1,19 @@ +#![crate_type = "rlib"] + +#![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] +#![omit_gdb_pretty_printer_section] + +// no-prefer-dynamic +// compile-flags:-g + +pub fn generic_function<T: Clone>(val: T) -> (T, T) { + let result = (val.clone(), val.clone()); + let a_variable: u32 = 123456789; + let another_variable: f64 = 123456789.5; + zzz(); + result +} + +#[inline(never)] +fn zzz() {()} |