mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Add tests
This commit is contained in:
24
examples/ir0/return_void.ir
Normal file
24
examples/ir0/return_void.ir
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user