Add a test for issue #33172
This commit is contained in:
parent
caee496150
commit
e696309fa3
1 changed files with 26 additions and 0 deletions
26
src/test/debuginfo/no_mangle-info.rs
Normal file
26
src/test/debuginfo/no_mangle-info.rs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue