aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro25.rs
blob: d92534c0747540ef275f8deeb24a68b7ab535254 (plain)
1
2
3
4
5
6
7
8
9
macro_rules! valid {
    ($($a:literal)* $i:ident) => {{}};
}

fn main() {
    valid!(1 one_lit);
    valid!(identifier_only);
    valid!(1 2 two_lits);
}