Add run-pass test suggested by @joshtriplett

This commit is contained in:
Aaron Hill 2020-02-19 10:49:34 -05:00
parent b00f6745c4
commit e11cdfdae4
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -0,0 +1,15 @@
// run-pass
fn main() {
let x = 1;
#[cfg(FALSE)]
if false {
x = 2;
} else if true {
x = 3;
} else {
x = 4;
}
assert_eq!(x, 1);
}