rust/tests/ui/macro_backtrace/auxiliary/ping.rs
2023-01-11 09:32:08 +00:00

31 lines
379 B
Rust

// Test that the macro backtrace facility works (supporting file)
// a non-local macro
#[macro_export]
macro_rules! ping {
() => {
pong!();
}
}
#[macro_export]
macro_rules! deep {
() => {
foo!();
}
}
#[macro_export]
macro_rules! foo {
() => {
bar!();
}
}
#[macro_export]
macro_rules! bar {
() => {
ping!();
}
}