This commit is contained in:
Araq
2017-02-17 17:44:52 +01:00
parent 5620e08563
commit dd8cbf5fca
2 changed files with 23 additions and 1 deletions

View 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