aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-asm-last.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-js-optimizer-asm-last.js')
-rw-r--r--tools/test-js-optimizer-asm-last.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-asm-last.js b/tools/test-js-optimizer-asm-last.js
new file mode 100644
index 00000000..2b025d28
--- /dev/null
+++ b/tools/test-js-optimizer-asm-last.js
@@ -0,0 +1,27 @@
+function finall(x) {
+ x = +x;
+ var a = +5;
+ a = +x;
+ a = 17;
+ a = +44;
+ a = +44.0;
+ a = +44.9;
+ a = +12.78e5;
+ a = +12e10;
+ a = -x;
+ a = -17;
+ a = -44;
+ a = -44.0;
+ a = -44.9;
+ a = -12.78e5;
+ a = -12e10;
+ a = +-x;
+ a = +-17;
+ a = +-44;
+ a = +-44.0;
+ a = +-44.9;
+ a = +-12.78e5;
+ a = +-12e10;
+ return +12e10;
+}
+// EMSCRIPTEN_GENERATED_FUNCTIONS: ["finall"]