Files
wasmtime/filetests/parser/call.cton
Jakob Stoklund Olesen 0b7f87b14c Convert parser tests to filetests.
Create a new directory hierarchy under 'filetests' for all the tests
that are run by 'cton-util test'.

Convert the parser tests under 'tests/parser' to use 'test cat' and
filecheck directives.
2016-09-15 15:50:47 -07:00

25 lines
424 B
Plaintext

; Parser tests for call and return syntax.
test cat
function mini() {
ebb1:
return
}
; sameln: function mini() {
; nextln: ebb0:
; nextln: return
; nextln: }
function r1() -> i32, f32 {
ebb1:
v1 = iconst.i32 3
v2 = f32const 0.0
return v1, v2
}
; sameln: function r1() -> i32, f32 {
; nextln: ebb0:
; nextln: v0 = iconst.i32 3
; nextln: v1 = f32const 0.0
; nextln: return v0, v1
; nextln: }