aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro26.rs
blob: f6588e75eb0ba9e50e60ebc0fbdc2f6410e453b9 (plain)
1
2
3
4
5
6
7
8
9
10
macro_rules! repeat {
    ( $( $i:literal ),* ; $( $j:literal ),* ) => (( $( ($i,$j) ),* ))
    // { dg-error "different amount of matches used in merged repetitions" "" { target *-*-* } .-1 }
}

fn main() -> i32 {
    let _ = repeat!(1, 2, 3; 2, 3);

    0
}