mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-16 17:35:02 +01:00
Detect unused variables
This commit is contained in:
parent
f164aad631
commit
9270f52e6b
33 changed files with 340 additions and 63 deletions
|
|
@ -1,6 +1,6 @@
|
|||
//@check-pass
|
||||
|
||||
function dropping(a: I32) =
|
||||
function dropping(_a: I32) =
|
||||
___asm(
|
||||
__locals(),
|
||||
"local.get 0",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
function a(a: I32) =
|
||||
function a(_a: I32) =
|
||||
___asm(
|
||||
__locals(),
|
||||
0,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
function dropping(a: I32) =
|
||||
function dropping(_a: I32) =
|
||||
___asm(
|
||||
__locals(),
|
||||
"meow meow",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
function dropping(a: I32) =
|
||||
function dropping(_a: I32) =
|
||||
___asm(
|
||||
"local.get 0",
|
||||
"drop",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
function dropping(a: I32) = (
|
||||
function dropping(_a: I32) = (
|
||||
1;
|
||||
___asm(__locals(), "drop");
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
function a(a: I32) =
|
||||
function a(_a: I32) =
|
||||
___asm(
|
||||
__locals(),
|
||||
"local.get 0 0",
|
||||
"drop",
|
||||
);
|
||||
|
||||
function b(a: I32) =
|
||||
function b(_a: I32) =
|
||||
___asm(
|
||||
__locals(),
|
||||
"local.get",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue