Files
cbindgen/tests/expectations/both/array.c
T
Jeff Muizelaar 42b4290c64 Manually copy arrays
C++ arrays can't be assigned. We detect this situation and manually copy
over the elements.
2019-01-03 16:06:33 -06:00

22 lines
264 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef enum Foo_Tag {
A,
} Foo_Tag;
typedef struct A_Body {
float _0[20];
} A_Body;
typedef struct Foo {
Foo_Tag tag;
union {
A_Body a;
};
} Foo;
void root(Foo a);