aboutsummaryrefslogtreecommitdiff
path: root/test/input/reduce/unsafe_math.reduced.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/input/reduce/unsafe_math.reduced.js')
-rw-r--r--test/input/reduce/unsafe_math.reduced.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/input/reduce/unsafe_math.reduced.js b/test/input/reduce/unsafe_math.reduced.js
new file mode 100644
index 00000000..ac2f1890
--- /dev/null
+++ b/test/input/reduce/unsafe_math.reduced.js
@@ -0,0 +1,22 @@
+var b = 0;
+
+function f0() {
+ var expr2 = (0 - 1 - .1 - .1).toString();
+ for (var key2 in expr2) {
+ --b;
+ }
+}
+
+var a_1 = f0();
+
+console.log(b);
+// output: -19
+//
+// minify: -4
+//
+// options: {
+// "compress": {
+// "unsafe_math": true
+// },
+// "mangle": false
+// } \ No newline at end of file