summary refs log tree commit diff stats
path: root/tests/modules/topaque.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modules/topaque.nim')
-rw-r--r--tests/modules/topaque.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/modules/topaque.nim b/tests/modules/topaque.nim
new file mode 100644
index 000000000..94ff8ff25
--- /dev/null
+++ b/tests/modules/topaque.nim
@@ -0,0 +1,16 @@
+discard """
+  errormsg: "undeclared field: \'buffer\'"
+  file: "topaque.nim"
+  line: 16
+"""
+# Test the new opaque types
+
+import
+  mopaque
+
+var
+  L: TLexer
+
+L.filename = "ha"
+L.line = 34
+L.buffer[0] = '\0' #ERROR_MSG undeclared field: 'buffer'