2017-10-27 04:50:54 +00:00
|
|
|
// Test that the macro backtrace facility works (supporting file)
|
|
|
|
|
|
|
|
|
|
// a non-local macro
|
|
|
|
|
#[macro_export]
|
|
|
|
|
macro_rules! ping {
|
|
|
|
|
() => {
|
|
|
|
|
pong!();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-08 18:35:55 -08:00
|
|
|
#[macro_export]
|
|
|
|
|
macro_rules! deep {
|
|
|
|
|
() => {
|
|
|
|
|
foo!();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
|
macro_rules! foo {
|
|
|
|
|
() => {
|
|
|
|
|
bar!();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
|
macro_rules! bar {
|
|
|
|
|
() => {
|
|
|
|
|
ping!();
|
|
|
|
|
}
|
|
|
|
|
}
|