Skip to content

Commit e11cdfd

Browse files
committed
Add run-pass test suggested by @joshtriplett
1 parent b00f674 commit e11cdfd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// run-pass
2+
3+
fn main() {
4+
let x = 1;
5+
6+
#[cfg(FALSE)]
7+
if false {
8+
x = 2;
9+
} else if true {
10+
x = 3;
11+
} else {
12+
x = 4;
13+
}
14+
assert_eq!(x, 1);
15+
}

0 commit comments

Comments
 (0)