aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro14.rs
blob: b18c56eefc8a920a4fa5f5fdbca9dfb2f74a3d87 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-additional-options "-w" }
macro_rules! define_vars {
    ($($v:ident)*) => { $(let $v = 15;)* }
}

fn main() -> i32 {
    define_vars!(a0 b f __some_identifier);

    b
}