mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Add tests
This commit is contained in:
21
examples/ir3/return_void.ir
Normal file
21
examples/ir3/return_void.ir
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user