aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/compilable/record_construction.elna12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/compilable/record_construction.elna b/testsuite/compilable/record_construction.elna
new file mode 100644
index 0000000..00e60db
--- /dev/null
+++ b/testsuite/compilable/record_construction.elna
@@ -0,0 +1,12 @@
+type
+ R = record
+ x, y: Int
+ end
+
+var
+ r: R := R{x: 1, y: 2}
+
+begin
+ assert(r.x = 1 & r.y = 2)
+return 0
+end.