Files
cs420/examples/asmgen/return_void.ir
Jeehoon Kang a12db7949c Update tests
2020-06-12 05:05:23 +09: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
}