aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro6.rs
blob: 9c54a674533d4744455fd8d6ff6b4c771c92bb41 (plain)
1
2
3
4
5
6
7
8
9
10
11
macro_rules! zero_or_one {
    ($($a:literal)?) => {
        f();
    }
}

fn main() {
    zero_or_one!();
    zero_or_one!(14);
    zero_or_one!(125 12 "gcc"); // { dg-error "Failed to match any rule within macro" }
}