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
This commit is contained in:
parent
ab740cb5b9
commit
49b64e8dc7
2 changed files with 14 additions and 6 deletions
7
tests/proc/tlambdapragma.nim
Normal file
7
tests/proc/tlambdapragma.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
errormsg: "invalid pragma: exportc"
|
||||
"""
|
||||
|
||||
let _ = proc () {.exportc.} =
|
||||
# this would previously cause a codegen error
|
||||
discard
|
||||
Loading…
Add table
Add a link
Reference in a new issue