]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-with-attrs1.rs
Merge commit '54a20a02ecd0e1352a871aa0990bcc8b8b03173e' into clippyup
[rust.git] / src / test / ui / macros / macro-with-attrs1.rs
1 // run-pass
2 // compile-flags: --cfg foo
3
4
5 #[cfg(foo)]
6 macro_rules! foo { () => (1) }
7
8 #[cfg(not(foo))]
9 macro_rules! foo { () => (2) }
10
11 pub fn main() {
12     assert_eq!(foo!(), 1);
13 }