| 1 |
#include <cstdarg> |
| 2 |
#include <cstdint> |
| 3 |
#include <cstdlib> |
| 4 |
#include <ostream> |
| 5 |
#include <new> |
| 6 |
|
| 7 |
enum class Status : uint32_t { |
| 8 |
Ok, |
| 9 |
Err, |
| 10 |
}; |
| 11 |
|
| 12 |
struct Dep { |
| 13 |
int32_t a; |
| 14 |
float b; |
| 15 |
}; |
| 16 |
|
| 17 |
template<typename X> |
| 18 |
struct Foo { |
| 19 |
X a; |
| 20 |
X b; |
| 21 |
Dep c; |
| 22 |
}; |
| 23 |
|
| 24 |
using IntFoo = Foo<int32_t>; |
| 25 |
|
| 26 |
using DoubleFoo = Foo<double>; |
| 27 |
|
| 28 |
using Unit = int32_t; |
| 29 |
|
| 30 |
using SpecialStatus = Status; |
| 31 |
|
| 32 |
extern "C" { |
| 33 |
|
| 34 |
void root(IntFoo x, DoubleFoo y, Unit z, SpecialStatus w); |
| 35 |
|
| 36 |
} // extern "C" |