summary refs log tree commit diff
path: root/src/test/ui/expanded-cfg.rs
blob: fbae093f2ac2d696180d83fd667d63c517db96c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// skip-codegen
// compile-pass
#![feature(custom_attribute)]
macro_rules! mac {
    {} => {
        #[cfg(attr)]
        mod m {
            #[lang_item]
            fn f() {}

            #[cfg_attr(target_thread_local, custom)]
            fn g() {}
        }

        #[cfg(attr)]
        unconfigured_invocation!();
    }
}

mac! {}


fn main() {}