aboutsummaryrefslogtreecommitdiffstats
path: root/tests/for
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2012-05-04 13:43:22 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2012-05-04 13:43:22 +0200
commit663a045cc2382e9e9793c4bcaadba608b2a1e011 (patch)
treea0927984fbb4bc6ae8dcf370e134f18fcbcef02d /tests/for
parent63f02b9ad2562e91f838618cd6c11e834addbf7c (diff)
Generate code for unary expressions.
Diffstat (limited to 'tests/for')
-rw-r--r--tests/for/for.4.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/for/for.4.js b/tests/for/for.4.js
new file mode 100644
index 0000000000..cf66fd00f0
--- /dev/null
+++ b/tests/for/for.4.js
@@ -0,0 +1,8 @@
+var d = ""
+var x = 0
+for (var i = 0; i < 20; i = i + 1) {
+ if (! (i % 2))
+ continue
+ x = x + i
+ d = d + (i + ") x = " + x + "\n")
+}