Skip to content

Rollup of 6 pull requests #98321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a test for issue #33172
  • Loading branch information
rylev committed Jun 20, 2022
commit edb6c4b092f7b85bdddad7e2fefb259ffc41bd9d
26 changes: 26 additions & 0 deletions src/test/debuginfo/no_mangle-info.rs
Original file line number Diff line number Diff line change
@@ -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
}