summaryrefslogtreecommitdiff
path: root/test/unit.asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r--test/unit.asm.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js
index 9d5f40aea..ebde4d398 100644
--- a/test/unit.asm.js
+++ b/test/unit.asm.js
@@ -689,10 +689,25 @@ function asm(global, env, buffer) {
return (~~x) | 0;
}
+ function autoDrop(x) {
+ x = x | 0;
+ while (1) {
+ if ((x | 0) == 17) {
+ return 5;
+ autoDrop(1) | 0;
+ } else {
+ break;
+ x = autoDrop(2) | 0;
+ }
+ }
+ return x | 0;
+ }
+
function keepAlive() {
sqrts(3.14159);
f2u(100.0);
f2s(100.0);
+ autoDrop(52) | 0;
}
function v() {