aboutsummaryrefslogtreecommitdiff
path: root/tests/blocks.ek
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-08-15 21:41:29 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-08-15 21:41:29 +0300
commitbad9ab7479d66dfdb1c8e2d18c23fbcff9ec394b (patch)
treed43dd3a26685c9adc8201dfe1a4035418175c1eb /tests/blocks.ek
parent5ffc39352ef0195697953e9318b8a17c79e7ae84 (diff)
downloadek-bad9ab7479d66dfdb1c8e2d18c23fbcff9ec394b.tar.gz
ek-bad9ab7479d66dfdb1c8e2d18c23fbcff9ec394b.zip
updates to syntax
Diffstat (limited to 'tests/blocks.ek')
-rw-r--r--tests/blocks.ek10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/blocks.ek b/tests/blocks.ek
new file mode 100644
index 0000000..e91d33c
--- /dev/null
+++ b/tests/blocks.ek
@@ -0,0 +1,10 @@
+main()
+{
+ a mut = switch 1 {
+ case 2: 2
+ case 1: 1
+ default: 20; 20
+ };
+
+ c mut = ({2 + 2; 4 + 4});
+}