Browse Source

Add tests for parsing call and return.

pull/1019/head
Jakob Stoklund Olesen 8 years ago
parent
commit
27b2c90a27
  1. 13
      cranelift/tests/parser/call.cton
  2. 11
      cranelift/tests/parser/call.cton.ref

13
cranelift/tests/parser/call.cton

@ -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
}

11
cranelift/tests/parser/call.cton.ref

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