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

22 lines
210 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
}