aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/execute/torture/macros5.rs
blob: 822665494a4519a883a957f935528d9b926a8103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
macro_rules! add {
    ($a:expr,$b:expr) => {{
        $a + $b
    }};
}

fn test() -> i32 {
    add!(1, 2)
}

fn main() -> i32 {
    test() - 3
}