rust/src/test/ui/expanded-cfg.rs

24 lines
324 B
Rust
Raw Normal View History

// skip-codegen
// compile-pass
2016-04-08 18:41:27 -05:00
macro_rules! mac {
{} => {
#[cfg(attr)]
mod m {
#[lang_item]
fn f() {}
#[cfg_attr(target_thread_local, custom)]
fn g() {}
2016-04-08 18:41:27 -05:00
}
#[cfg(attr)]
unconfigured_invocation!();
2016-04-08 18:41:27 -05:00
}
}
mac! {}
fn main() {}