os-rust/tests/ui/macros/macro-with-attrs2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
156 B
Rust
Raw Normal View History

//@ run-pass
#[cfg(FALSE)]
2015-01-25 22:05:03 +01:00
macro_rules! foo { () => (1) }
#[cfg(not(FALSE))]
2015-01-25 22:05:03 +01:00
macro_rules! foo { () => (2) }
pub fn main() {
2015-01-25 22:05:03 +01:00
assert_eq!(foo!(), 2);
}