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

24 lines
353 B
Rust
Raw Normal View History

// skip-codegen
// compile-pass
#![feature(custom_attribute)]
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() {}