| 1 |
#if 0 |
| 2 |
DEF DEFINE_FREEBSD = 0 |
| 3 |
#endif |
| 4 |
|
| 5 |
|
| 6 |
#include <cstdarg> |
| 7 |
#include <cstdint> |
| 8 |
#include <cstdlib> |
| 9 |
#include <ostream> |
| 10 |
#include <new> |
| 11 |
|
| 12 |
struct Foo { |
| 13 |
int32_t x; |
| 14 |
}; |
| 15 |
|
| 16 |
struct RenamedTy { |
| 17 |
uint64_t y; |
| 18 |
}; |
| 19 |
|
| 20 |
#if !defined(DEFINE_FREEBSD) |
| 21 |
struct NoExternTy { |
| 22 |
uint8_t field; |
| 23 |
}; |
| 24 |
#endif |
| 25 |
|
| 26 |
#if !defined(DEFINE_FREEBSD) |
| 27 |
struct ContainsNoExternTy { |
| 28 |
NoExternTy field; |
| 29 |
}; |
| 30 |
#endif |
| 31 |
|
| 32 |
#if defined(DEFINE_FREEBSD) |
| 33 |
struct ContainsNoExternTy { |
| 34 |
uint64_t field; |
| 35 |
}; |
| 36 |
#endif |
| 37 |
|
| 38 |
extern "C" { |
| 39 |
|
| 40 |
void root(Foo a); |
| 41 |
|
| 42 |
void renamed_func(RenamedTy a); |
| 43 |
|
| 44 |
void no_extern_func(ContainsNoExternTy a); |
| 45 |
|
| 46 |
} // extern "C" |