From 51e2f98e33ae10fc3052335cc6847bc93d0784fa Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 14 Jul 2026 01:45:58 +0200 Subject: Add static array initializer --- testsuite/runnable/record_construction.elna | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 testsuite/runnable/record_construction.elna (limited to 'testsuite/runnable/record_construction.elna') diff --git a/testsuite/runnable/record_construction.elna b/testsuite/runnable/record_construction.elna new file mode 100644 index 0000000..00e60db --- /dev/null +++ b/testsuite/runnable/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. -- cgit v1.2.3