mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
21 lines
577 B
Rust
21 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)); } }
|
|
}
|