aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/attr-macro.rs
blob: de9fce12cb970f3188bf49a5cccd352fd8fafb8d (plain)
1
2
3
4
5
6
7
macro_rules! foo {
    () => { #[cfg(all())] 12 }
}

fn main() -> i32 {
    foo!()
}