summary refs log tree commit diff stats
path: root/tests/ccgbugs/tmangle_field.nim
blob: da2720aaa82ec05447aeac3ad8c87fdcea08bc91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
"""

# bug #5404

import parseopt

{.emit: """typedef struct {
    int key;
} foo;""".}

type foo* {.importc: "foo", nodecl.} = object
  key* {.importc: "key".}: cint

for kind, key, value in parseopt.getopt():
  discard