blob: e7b4a362adf91e7bc6faa8887ba4474637fc4e8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
cfg_if::cfg_if! {
if #[cfg(foo)] {
fn works() -> bool { false }
} else if #[cfg(test)] {
fn works() -> bool { true }
} else {
fn works() -> bool { false }
}
}
#[test]
fn smoke() {
assert!(works());
}
|