blob: 85498643459d3ac89bb2c33cdd49a34a0fdf92eb (
plain) (
blame)
1
2
3
4
5
6
7
8
|
// expect:
// spec 4.3: else binds to the nearest if, so nothing prints when the outer condition is false
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
if (0) if (0) pn(1); else pn(2);
return 0;
}
|