summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.toc b/test.toc
index 148c6de..c0ba997 100644
--- a/test.toc
+++ b/test.toc
@@ -10,6 +10,15 @@ dbl @= fn(x: &[3]int) {
(*x)[2] = (*x)[2] * 2;
};
+foo @= fn() a: int {
+ a = 3;
+ if true {
+ a = 4;
+ } elif false {
+ a = 17+1/0;
+ }
+};
+
main @= fn() {
a : [3]int;
a[0] = 1;