mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
17 lines
235 B
Nim
17 lines
235 B
Nim
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
|