aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/v4/simple.2.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/v4/simple.2.js')
-rw-r--r--tests/manual/v4/simple.2.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/manual/v4/simple.2.js b/tests/manual/v4/simple.2.js
new file mode 100644
index 0000000000..4a9f966da1
--- /dev/null
+++ b/tests/manual/v4/simple.2.js
@@ -0,0 +1,19 @@
+
+function main()
+{
+ var a = 1
+ var b = 2
+ var c = 10
+ var d = 100
+
+ for (var i = 0; i < 1000000; i = i + 1) {
+ if (a == 1)
+ d = d + a + b * c
+ else
+ d = 321
+ }
+
+ print("the result is", d)
+}
+
+main()