mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
35 lines
701 B
Rust
35 lines
701 B
Rust
// ignore-lldb
|
|
#![feature(collapse_debuginfo)]
|
|
|
|
// Test that macro attribute #[collapse_debuginfo(no)]
|
|
// overrides "collapse_macro_debuginfo=external" flag
|
|
|
|
// compile-flags:-g -Z collapse_macro_debuginfo=external
|
|
|
|
// === GDB TESTS ===================================================================================
|
|
|
|
// gdb-command:run
|
|
// gdb-command:next
|
|
// gdb-command:frame
|
|
// gdb-check:[...]#one_callsite[...]
|
|
// gdb-command:next
|
|
// gdb-command:frame
|
|
// gdb-command:continue
|
|
|
|
fn one() {
|
|
println!("one");
|
|
}
|
|
|
|
#[collapse_debuginfo(no)]
|
|
macro_rules! outer {
|
|
() => {
|
|
one(); // #one_callsite
|
|
};
|
|
}
|
|
|
|
fn main() {
|
|
let ret = 0; // #break
|
|
outer!();
|
|
std::process::exit(ret);
|
|
}
|