master
1export fn entry() void {
2 var x: u32 = 0;
3 _ = &x;
4 for (0..1, 1..2) |_, _| {
5 var y = x + if (x == 0) 1 else 0;
6 _ = &y;
7 }
8}
9
10// error
11//
12// :5:21: error: value with comptime-only type 'comptime_int' depends on runtime control flow
13// :4:10: note: runtime control flow here