aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/compilable/record_const_base.elna18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/compilable/record_const_base.elna b/testsuite/compilable/record_const_base.elna
new file mode 100644
index 0000000..f24d27b
--- /dev/null
+++ b/testsuite/compilable/record_const_base.elna
@@ -0,0 +1,18 @@
+type
+ B = record
+ x: Int
+ end
+ CB = const B
+ D = record(CB)
+ y: Int
+ end
+
+proc f()
+var
+ d: D
+begin
+ d.x := 1;
+ d.y := 2
+return
+
+end.