Add tests for parsing call and return.

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

13
tests/parser/call.cton Normal file
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
}