aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/execute/torture/macros6.rs
blob: 652a765d5a881b7bc0ce80bcc420cfee71220e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
macro_rules! Test {
    ($a:ident, $b:ty) => {
        struct $a($b);
    };
}

Test!(Foo, i32);

fn main() -> i32 {
    let a = Foo(123);
    a.0 - 123
}