]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-with-attrs1.rs
Rollup merge of #87596 - jesyspa:issue-87318-hidden-whitespace, r=estebank
[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 }