rust/src/test/debuginfo/no_mangle-info.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
736 B
Rust
Raw Normal View History

2022-05-16 17:54:12 +02:00
// compile-flags:-g
// === GDB TESTS ===================================================================================
// gdb-command:run
// gdb-command:whatis TEST
// gdb-check:type = u64
// === LLDB TESTS ==================================================================================
// lldb-command:run
// lldb-command:expr TEST
// lldb-check: (unsigned long) $0 = 3735928559
// === CDB TESTS ==================================================================================
// cdb-command: g
// cdb-command: dx a!no_mangle_info::TEST
// cdb-check: a!no_mangle_info::TEST : 0xdeadbeef [Type: unsigned __int64]
#[no_mangle]
pub static TEST: u64 = 0xdeadbeef;
pub fn main() {
println!("TEST: {}", TEST); // #break
}