aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-368.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/issue-368.js')
-rw-r--r--test/compress/issue-368.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/compress/issue-368.js b/test/compress/issue-368.js
index 8c41a894..5960aa64 100644
--- a/test/compress/issue-368.js
+++ b/test/compress/issue-368.js
@@ -21,6 +21,16 @@ collapse: {
var a;
a = b(a / 2);
if (a < 0) {
+ a++;
+ ++c;
+ return c / 2;
+ }
+ }
+ function f4(c) {
+ var a;
+ a = b(a / 2);
+ if (a < 0) {
+ a++;
c++;
return c / 2;
}
@@ -35,7 +45,11 @@ collapse: {
}
function f3(c) {
var a;
- if ((a = b(a / 2)) < 0) return c++ / 2;
+ if ((a = b(a / 2)) < 0) return a++, ++c / 2;
+ }
+ function f4(c) {
+ var a;
+ if ((a = b(a / 2)) < 0) return a++, ++c / 2;
}
}
}