Sign in
android
/
platform
/
external
/
rust
/
crates
/
cfg-if
/
d4d5d9f2b2b1c50a9db57d2d3e5a10b7e17ab814
/
.
/
tests
/
xcrate.rs
blob: e7b4a362adf91e7bc6faa8887ba4474637fc4e8f [
file
] [
log
] [
blame
]
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
());
}