Files
cs420/examples/ir/return_void.ir
2020-05-18 18:57:21 +09:00

25 lines
205 B
Plaintext

fun unit @foo {
init:
bid: b0
allocations:
block b0:
ret unit:unit
}
fun i32 @main {
init:
bid: b0
allocations:
block b0:
%b0:i0:unit = call @foo()
ret 1:i32
block b1:
ret 0:i32
}