rust/src/test/ui/expanded-cfg.rs
2018-12-25 21:08:33 -07:00

24 lines
353 B
Rust

// 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() {}