aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/conditionals.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/compress/conditionals.js b/test/compress/conditionals.js
index b0234031..c244dc84 100644
--- a/test/compress/conditionals.js
+++ b/test/compress/conditionals.js
@@ -246,6 +246,14 @@ cond_7: {
x = 2;
}
+ if (y) {
+ x = 1+1;
+ } else if (z) {
+ x = 2;
+ } else {
+ x = 3-1;
+ }
+
x = y ? 'foo' : 'fo'+'o';
x = y ? 'foo' : y ? 'foo' : 'fo'+'o';
@@ -267,6 +275,7 @@ cond_7: {
}
expect: {
x = 2;
+ x = 2;
x = 'foo';
x = 'foo';
x = y ? a : b;