2 // min-gdb-version: 10.1
4 // === GDB TESTS ===================================================================================
7 // gdb-check:$1 = 3735928559
8 // gdb-command:p no_mangle_info::namespace::OTHER_TEST
11 // === LLDB TESTS ==================================================================================
13 // lldb-command:p TEST
14 // lldb-check: (unsigned long) $0 = 3735928559
15 // lldb-command:p OTHER_TEST
16 // lldb-check: (unsigned long) $1 = 42
18 // === CDB TESTS ==================================================================================
20 // Note: LLDB and GDB allow referring to items that are in the same namespace of the symbol
21 // we currently have a breakpoint on in an unqualified way. CDB does not, and thus we need to
22 // refer to it in a fully qualified way.
23 // cdb-command: dx a!no_mangle_info::TEST
24 // cdb-check: a!no_mangle_info::TEST : 0xdeadbeef [Type: unsigned __int64]
25 // cdb-command: dx a!no_mangle_info::namespace::OTHER_TEST
26 // cdb-check: a!no_mangle_info::namespace::OTHER_TEST : 0x2a [Type: unsigned __int64]
29 pub static TEST: u64 = 0xdeadbeef;
31 // FIXME(rylev, wesleywiser): uncommenting this item breaks the test, and we're not sure why
32 // pub static OTHER_TEST: u64 = 43;
34 pub static OTHER_TEST: u64 = 42;
38 println!("TEST: {}", TEST);
39 println!("OTHER TEST: {}", namespace::OTHER_TEST); // #break