denyhosts/clamav/libclamav_rust/.cargo/vendor/cfg-if/tests/xcrate.rs

15 lines
245 B
Rust
Raw Permalink Normal View History

2023-01-14 18:28:39 +08:00
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());
}