aboutsummaryrefslogtreecommitdiffstats
path: root/progs/tests/blob/cluster.sy
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tests/blob/cluster.sy')
-rw-r--r--progs/tests/blob/cluster.sy14
1 files changed, 14 insertions, 0 deletions
diff --git a/progs/tests/blob/cluster.sy b/progs/tests/blob/cluster.sy
new file mode 100644
index 0000000..dc8ec72
--- /dev/null
+++ b/progs/tests/blob/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
+}