tmangle_field.nim 233 B

1234567891011121314151617
  1. discard """
  2. """
  3. # bug #5404
  4. import parseopt
  5. {.emit: """typedef struct {
  6. int key;
  7. } foo;""".}
  8. type foo* {.importc: "foo", nodecl.} = object
  9. key* {.importc: "key".}: cint
  10. for kind, key, value in parseopt.getopt():
  11. discard