blob: 67d8120dfef139eced2970e82d8147041d33fa06 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// expect error: used before it is initialized
// spec 4.1.5: a loop that may run zero times does not initialize
include rt;
fn main() {
int x;
int n = 0;
while (n) x = 1;
rt.put_n(x);
return 0;
}
// zc0: skip
|