Remove declPragmas from lambdas [backport:1.0] (#16966)

* Remove declPragmas from lambdas [backport:1.0]

* add test for exportc

* fix test

* fix align, nodecl -> noinit

(cherry picked from commit 49b64e8dc7)
This commit is contained in:
hlaaftana
2021-02-09 16:23:06 +03:00
committed by narimiran
parent 52155b5587
commit 286b94e7de
2 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
discard """
errormsg: "invalid pragma: exportc"
"""
let _ = proc () {.exportc.} =
# this would previously cause a codegen error
discard