parent
432a4d1787
commit
1ec5c6fdf5
2 changed files with 15 additions and 1 deletions
|
|
@ -350,5 +350,19 @@ testinstance:
|
|||
|
||||
main()
|
||||
|
||||
{.emit: """/*TYPESECTION*/
|
||||
typedef struct{
|
||||
float a; float b;
|
||||
} Foo;
|
||||
""".}
|
||||
|
||||
type
|
||||
Foo {.importc.} = object
|
||||
|
||||
Bar = object
|
||||
b: byte
|
||||
foo: Foo
|
||||
|
||||
assert sizeof(Bar) == 12
|
||||
|
||||
echo "OK"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue