mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-08 22:47:27 +00:00
fixes #5404
This commit is contained in:
16
tests/ccgbugs/tmangle_field.nim
Normal file
16
tests/ccgbugs/tmangle_field.nim
Normal file
@@ -0,0 +1,16 @@
|
||||
discard """
|
||||
"""
|
||||
|
||||
# bug #5404
|
||||
|
||||
import parseopt2
|
||||
|
||||
{.emit: """typedef struct {
|
||||
int key;
|
||||
} foo;""".}
|
||||
|
||||
type foo* {.importc: "foo", nodecl.} = object
|
||||
key* {.importc: "key".}: cint
|
||||
|
||||
for kind, key, value in parseopt2.getopt():
|
||||
discard
|
||||
Reference in New Issue
Block a user