aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro19.rs
blob: 1bf9a2bfa9d388eaedb4f3b597a9542216dd0b45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-additional-options "-w" }

macro_rules! call_without_semi {
    () => {
        f()
    };
    (block) => {{
        f()
    }};
}

fn f() {}

fn main() -> i32 {
    call_without_semi!();
    call_without_semi!(block);

    0
}