2024-02-22 06:10:29 -06:00
|
|
|
//@ ignore-lldb
|
2024-01-10 12:36:05 -06:00
|
|
|
#![feature(collapse_debuginfo)]
|
|
|
|
|
|
|
|
// Test that local macro debug info is not collapsed with #[collapse_debuginfo(external)]
|
|
|
|
|
2024-02-22 06:10:29 -06:00
|
|
|
//@ compile-flags:-g
|
2024-01-10 12:36:05 -06:00
|
|
|
|
|
|
|
// === GDB TESTS ===================================================================================
|
|
|
|
|
|
|
|
// gdb-command:run
|
|
|
|
// gdb-command:next
|
|
|
|
// gdb-command:frame
|
|
|
|
// gdb-check:[...]#one_callsite[...]
|
|
|
|
// gdb-command:continue
|
|
|
|
|
|
|
|
fn one() {
|
|
|
|
println!("one");
|
|
|
|
}
|
|
|
|
|
|
|
|
#[collapse_debuginfo(external)]
|
|
|
|
macro_rules! outer {
|
|
|
|
() => {
|
|
|
|
one(); // #one_callsite
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let ret = 0; // #break
|
|
|
|
outer!();
|
|
|
|
std::process::exit(ret);
|
|
|
|
}
|