mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
tests
This commit is contained in:
parent
7fec1b1ce7
commit
a22cc15b59
11 changed files with 54 additions and 54 deletions
|
|
@ -1,5 +1,3 @@
|
|||
//@check-pass
|
||||
|
||||
function dropping(a: I32) =
|
||||
___asm(
|
||||
__locals(),
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error: unknown instruction: meow
|
||||
--> $DIR/invalid_instr.nil:6
|
||||
6 | "meow meow",
|
||||
--> $DIR/invalid_instr.nil:4
|
||||
4 | "meow meow",
|
||||
^^^^^^^^^^^
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
//@check-pass
|
||||
|
||||
function dropping(a: I32) =
|
||||
___asm(
|
||||
"local.get 0",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error: inline assembly must have __locals() as first argument
|
||||
--> $DIR/missing_locals.nil:4
|
||||
4 | ___asm(
|
||||
--> $DIR/missing_locals.nil:2
|
||||
2 | ___asm(
|
||||
^
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
//@check-pass
|
||||
|
||||
function a(a: I32) =
|
||||
___asm(
|
||||
__locals(),
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
error: mismatched immediate lengths, expected 1, got 2
|
||||
--> $DIR/wrong_imm.nil:6
|
||||
6 | "local.get 0 0",
|
||||
--> $DIR/wrong_imm.nil:4
|
||||
4 | "local.get 0 0",
|
||||
^^^^^^^^^^^^^^^
|
||||
error: mismatched immediate lengths, expected 1, got 0
|
||||
--> $DIR/wrong_imm.nil:13
|
||||
13 | "local.get",
|
||||
--> $DIR/wrong_imm.nil:11
|
||||
11 | "local.get",
|
||||
^^^^^^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue