]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-with-attrs1.rs
Rollup merge of #104505 - WaffleLapkin:no-double-spaces-in-comments, r=jackh726
[rust.git] / tests / 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 }