summary refs log blame commit diff stats
path: root/tests/ccgbugs/tmangle_field.nim
blob: da2720aaa82ec05447aeac3ad8c87fdcea08bc91 (plain) (tree)
1
2
3
4
5
6




           
               







                                             
                                          
         
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