aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-09-08 21:14:03 +0200
committerEugen Wissner <belka@caraus.de>2026-09-08 21:14:03 +0200
commitb27872d5c5bfecae74195771f5c1f4e73385b6d6 (patch)
treed0bc9d09c5b4073a42680f07a8aa3dca8df9e50b /testsuite
parent47c8f99b6ef812dbc22ca56a39ba21bccad47796 (diff)
downloadelna-b27872d5c5bfecae74195771f5c1f4e73385b6d6.tar.gz
Fix ICE with offset trait and non-type identifier
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/fail_compilation/offset_not_record.elna9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/offset_not_record.elna b/testsuite/fail_compilation/offset_not_record.elna
new file mode 100644
index 0000000..d19e608
--- /dev/null
+++ b/testsuite/fail_compilation/offset_not_record.elna
@@ -0,0 +1,9 @@
+var
+ n: Word
+
+program()
+begin
+ n := #offset(Int, top) (* @Error Type 'Int' does not support trait '#offset' *)
+return 0u8
+
+end.