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