aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro27.rs
blob: ee7833be0a6e5cab4d0cba5d8cef535f43863269 (plain)
1
2
3
4
5
6
7
8
macro_rules! m {
    ($a:expr tok) => {
        // { dg-error "token .identifier. is not allowed after .expr. fragment" "" { target *-*-* } .-1 }
        // { dg-error "required first macro rule in macro rules definition could not be parsed" "" { target *-*-* } .-2 }
        // { dg-error "failed to parse item in crate" "" { target *-*-* } .-3 }
        $a
    };
}