cbindgen/tests/expectations/simplify-option-ptr.both.c

21 lines
325 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef struct Opaque Opaque;
typedef struct Foo {
const Opaque *x;
Opaque *y;
void (*z)(void);
} Foo;
typedef union Bar {
const Opaque *x;
Opaque *y;
void (*z)(void);
} Bar;
void root(const Opaque *a, Opaque *b, Foo c, Bar d);