Files
cs420/examples/ir0/return_void.ir
Jeehoon Kang ea9e6afcf8 Add tests
2020-06-09 14:45:11 +00:00

25 lines
233 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:unit params:()]()
ret 1:i32
block b1:
ret 0:i32
}