summaryrefslogtreecommitdiffstats
path: root/tests/ui/macro_backtrace/auxiliary/ping.rs
blob: 25b9efbc93ac9453c450c11db6488451a351aec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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!();
    }
}