1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <new>
#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
struct RenamedTy {
uint64_t y;
};
struct Foo {
int32_t x;
};
extern "C" {
void no_extern_func(ContainsNoExternTy a);
void renamed_func(RenamedTy a);
void root(Foo a);
} // extern "C"