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
41
42
43
44
45
46
47
#if 0
DEF DEFINED = 1
DEF NOT_DEFINED = 0
#endif
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
#if defined(NOT_DEFINED)
constexpr static const int32_t DEFAULT_X = 8;
#endif
#if defined(DEFINED)
constexpr static const int32_t DEFAULT_X = 42;
#endif
#if (defined(NOT_DEFINED) || defined(DEFINED))
struct Foo {
int32_t x;
};
#endif
#if defined(NOT_DEFINED)
struct Bar {
Foo y;
};
#endif
#if defined(DEFINED)
struct Bar {
Foo z;
};
#endif
struct Root {
Bar w;
};
extern "C" {
void root(Root a);
} // extern "C"