gccrs: Handle `async` functions in traits
[official-gcc.git] / gcc / testsuite / rust / compile / macro32.rs
blobd1d6305e6bdd005a0a696037926389ae9767c85b
1 macro_rules! s {
2     ($s:stmt) => {{}};
5 macro_rules! multi_s {
6     ($($s:stmt)+) => {{}};
9 fn main() -> i32 {
10     s!(let a = 15);
11     s!(;); // Empty statement
12     s!(let a = 15;); // { dg-error "Failed to match any rule within macro" }
13     multi_s!(let a = 15;);
14     // ^ this actually gets parsed as two statements - one LetStmt and one
15     // empty statement. This is the same behavior as rustc, which you can
16     // see using a count!() macro
18     32