aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/auto/cluster.sy
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tests/auto/cluster.sy')
-rw-r--r--progs/tests/auto/cluster.sy14
1 files changed, 14 insertions, 0 deletions
diff --git a/progs/tests/auto/cluster.sy b/progs/tests/auto/cluster.sy
new file mode 100644
index 0000000..8f279e7
--- /dev/null
+++ b/progs/tests/auto/cluster.sy
@@ -0,0 +1,14 @@
+start :: fn {
+
+blob A { a: int }
+a := A()
+a.a = 0
+a.a += 1
+a.a <=> 1
+a.a *= 2
+a.a <=> 2
+a.a /= 2
+a.a <=> 1
+a.a -= 1
+a.a <=> 0
+}