mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
20 lines
577 B
Rust
20 lines
577 B
Rust
//@ run-pass
|
|
|
|
pub fn main() {
|
|
if 1 == 2 {
|
|
assert!((false));
|
|
} else if 2 == 3 {
|
|
assert!((false));
|
|
} else if 3 == 4 { assert!((false)); } else { assert!((true)); }
|
|
if 1 == 2 { assert!((false)); } else if 2 == 2 { assert!((true)); }
|
|
if 1 == 2 {
|
|
assert!((false));
|
|
} else if 2 == 2 {
|
|
if 1 == 1 {
|
|
assert!((true));
|
|
} else { if 2 == 1 { assert!((false)); } else { assert!((false)); } }
|
|
}
|
|
if 1 == 2 {
|
|
assert!((false));
|
|
} else { if 1 == 2 { assert!((false)); } else { assert!((true)); } }
|
|
}
|