David Mak
e95586f61e
Fix cases where the body BB would have two terminators because of a preceding continue/break statement already emitting a terminator.
21 lines
329 B
Python
21 lines
329 B
Python
@extern
|
|
def output_int32(x: int32):
|
|
...
|
|
|
|
def run() -> int32:
|
|
for i in range(4):
|
|
output_int32(i)
|
|
if i < 2:
|
|
continue
|
|
else:
|
|
break
|
|
|
|
n = [0, 1, 2, 3]
|
|
for i in n:
|
|
output_int32(i)
|
|
if i < 2:
|
|
continue
|
|
else:
|
|
break
|
|
|
|
return 0 |