diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/proc/tlambdapragma.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/proc/tlambdapragma.nim b/tests/proc/tlambdapragma.nim new file mode 100644 index 000000000..daa952b1e --- /dev/null +++ b/tests/proc/tlambdapragma.nim @@ -0,0 +1,7 @@ +discard """ + errormsg: "invalid pragma: exportc" +""" + +let _ = proc () {.exportc.} = + # this would previously cause a codegen error + discard |