.cargo/vendor/cbindgen/tests/expectations/union_self.both.compat.c
raw| 1 | #include <stdarg.h> |
| 2 | #include <stdbool.h> |
| 3 | #include <stdint.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | typedef struct Foo_Bar { |
| 7 | const int32_t *something; |
| 8 | } Foo_Bar; |
| 9 | |
| 10 | typedef union Bar { |
| 11 | int32_t something; |
| 12 | struct Foo_Bar subexpressions; |
| 13 | } Bar; |
| 14 | |
| 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif // __cplusplus |
| 18 | |
| 19 | void root(union Bar b); |
| 20 | |
| 21 | #ifdef __cplusplus |
| 22 | } // extern "C" |
| 23 | #endif // __cplusplus |