aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro11.rs
blob: 97b89a12d84e53a3bbc76598386d4361269f00a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
macro_rules! call_f {
    ($($f:ident)*) => { $($f();)* }
}

fn f() {}

// This is valid and should parse items
fn main() {
    call_f!(f f f f);
}