summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-06-13 05:27:19 (GMT)
committerMarius Kintel <marius@kintel.net>2013-06-13 05:27:19 (GMT)
commite76a41a34672385eb0f8e69e95c932a565cc2bc2 (patch)
tree6dc076d2fc1cd1a5ff3129413721003da49d950c /testdata
parent4280ebe7d38c5f35feccb03409c065411e7b31f9 (diff)
Added scope and reassignment tests
Diffstat (limited to 'testdata')
-rw-r--r--testdata/scad/misc/value-reassignment-tests2.scad9
1 files changed, 9 insertions, 0 deletions
diff --git a/testdata/scad/misc/value-reassignment-tests2.scad b/testdata/scad/misc/value-reassignment-tests2.scad
new file mode 100644
index 0000000..9d7cf50
--- /dev/null
+++ b/testdata/scad/misc/value-reassignment-tests2.scad
@@ -0,0 +1,9 @@
+// Test reassignment where another variable has used the previous
+// value before the reassignment. This could get messed up if order of
+// assignment evaluation changes
+
+myval = 2;
+i = myval;
+myval = 3;
+echo(myval, i); // Should output 3, 2
+
contact: Jan Huwald // Impressum