| 1 |
#include <stdarg.h> |
| 2 |
#include <stdbool.h> |
| 3 |
#include <stdint.h> |
| 4 |
#include <stdlib.h> |
| 5 |
|
| 6 |
enum Status { |
| 7 |
Ok, |
| 8 |
Err, |
| 9 |
}; |
| 10 |
typedef uint32_t Status; |
| 11 |
|
| 12 |
typedef struct Dep { |
| 13 |
int32_t a; |
| 14 |
float b; |
| 15 |
} Dep; |
| 16 |
|
| 17 |
typedef struct Foo_i32 { |
| 18 |
int32_t a; |
| 19 |
int32_t b; |
| 20 |
struct Dep c; |
| 21 |
} Foo_i32; |
| 22 |
|
| 23 |
typedef struct Foo_i32 IntFoo; |
| 24 |
|
| 25 |
typedef struct Foo_f64 { |
| 26 |
double a; |
| 27 |
double b; |
| 28 |
struct Dep c; |
| 29 |
} Foo_f64; |
| 30 |
|
| 31 |
typedef struct Foo_f64 DoubleFoo; |
| 32 |
|
| 33 |
typedef int32_t Unit; |
| 34 |
|
| 35 |
typedef Status SpecialStatus; |
| 36 |
|
| 37 |
void root(IntFoo x, DoubleFoo y, Unit z, SpecialStatus w); |