cbindgen/tests/expectations/cdecl.compat.c
yingrueil 0163b83d76 bindgen: enable "void prototype" while writing struct field
This fixs typedef's signature in C as well because a typedef statement is
constructed like, "typedef " + field_like_string.
2020-02-15 13:03:44 +08:00

47 lines
837 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef void (*A)(void);
typedef void (*B)(void);
typedef bool (*C)(int32_t, int32_t);
typedef bool (*(*D)(int32_t))(float);
typedef const int32_t (*(*E)(void))[16];
typedef const int32_t *F;
typedef const int32_t *const *G;
typedef int32_t *const *H;
typedef const int32_t (*I)[16];
typedef double (**J)(float);
typedef int32_t K[16];
typedef const int32_t *L[16];
typedef bool (*M[16])(int32_t, int32_t);
typedef void (*N[16])(int32_t, int32_t);
typedef void (*P)(int32_t named1st, bool, bool named3rd, int32_t _);
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void (*O(void))(void);
void root(A a, B b, C c, D d, E e, F f, G g, H h, I i, J j, K k, L l, M m, N n, P p);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus