mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Add a test for issue #33172
This commit is contained in:
parent
caee496150
commit
e696309fa3
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…
Reference in New Issue
Block a user