summary refs log tree commit diff stats
path: root/tests/pragmas/t5149.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pragmas/t5149.nim')
-rw-r--r--tests/pragmas/t5149.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pragmas/t5149.nim b/tests/pragmas/t5149.nim
new file mode 100644
index 000000000..2d242a8d5
--- /dev/null
+++ b/tests/pragmas/t5149.nim
@@ -0,0 +1,12 @@
+discard """
+  errormsg: "{.exportc.} not allowed for type aliases"
+  line: 9
+"""
+
+type
+  X* = object
+    a: int
+  Y* {.exportc.} = X
+
+proc impl*(x: X) =
+  echo "it works"