aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
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.