Add tests for parsing call and return.

This commit is contained in:
Jakob Stoklund Olesen
2016-07-08 16:28:19 -07:00
parent 8cb198b23c
commit 27b2c90a27
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
; Parser tests for call and return syntax.
function mini() {
ebb1:
return
}
function r1() -> i32, f32 {
ebb1:
v1 = iconst.i32 3
v2 = f32const 0.0
return v1, v2
}

View File

@@ -0,0 +1,11 @@
function mini() {
ebb0:
return
}
function r1() -> i32, f32 {
ebb0:
v0 = iconst.i32 3
v1 = f32const 0.0
return v0, v1
}