2018-11-27 00:13:34 +00:00
|
|
|
#include <cstdarg>
|
2018-03-14 14:39:28 -05:00
|
|
|
#include <cstdint>
|
|
|
|
#include <cstdlib>
|
2019-05-07 01:00:13 +02:00
|
|
|
#include <new>
|
2018-03-14 14:39:28 -05:00
|
|
|
|
2019-04-30 13:03:32 -04:00
|
|
|
#if !defined(DEFINE_FREEBSD)
|
|
|
|
struct NoExternTy {
|
|
|
|
uint8_t field;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(DEFINE_FREEBSD)
|
|
|
|
struct ContainsNoExternTy {
|
|
|
|
NoExternTy field;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(DEFINE_FREEBSD)
|
|
|
|
struct ContainsNoExternTy {
|
|
|
|
uint64_t field;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2019-04-29 15:10:48 -04:00
|
|
|
struct RenamedTy {
|
|
|
|
uint64_t y;
|
|
|
|
};
|
|
|
|
|
2018-03-14 14:39:28 -05:00
|
|
|
struct Foo {
|
|
|
|
int32_t x;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
2019-04-30 13:03:32 -04:00
|
|
|
void no_extern_func(ContainsNoExternTy a);
|
|
|
|
|
2019-04-29 15:10:48 -04:00
|
|
|
void renamed_func(RenamedTy a);
|
|
|
|
|
2018-03-14 14:39:28 -05:00
|
|
|
void root(Foo a);
|
|
|
|
|
|
|
|
} // extern "C"
|