blob: faa89f2784e5966b9695f9dfad55114e9ce5780d [file] [log] [blame] [edit]
//@ ignore-lldb
// Test that static debug info is collapsed with #[collapse_debuginfo(yes)]
//@ compile-flags:-g
//@ ignore-backends: gcc
// === GDB TESTS ===================================================================================
//@ gdb-command:info line collapse_debuginfo_static::FOO
//@ gdb-check:[...]Line 20[...]
#[collapse_debuginfo(yes)]
macro_rules! decl_foo {
() => {
static FOO: u32 = 0;
};
}
decl_foo!();
fn main() {
// prevent FOO from getting optimized out
std::hint::black_box(&FOO);
}