blob: 9feb06be73e9092645d80b45fdedee01c955bade [file] [log] [blame] [edit]
//@ run-pass
// check that cfg correctly chooses between the macro impls (see also
// cfg-macros-foo.rs)
#[cfg(FALSE)]
#[macro_use]
mod foo {
macro_rules! bar {
() => { true }
}
}
#[cfg(not(FALSE))]
#[macro_use]
mod foo {
macro_rules! bar {
() => { false }
}
}
pub fn main() {
assert!(!bar!())
}