Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/reserved.cpp

raw
1 #include <cstdarg>
2 #include <cstdint>
3 #include <cstdlib>
4 #include <ostream>
5 #include <new>
6
7 struct A {
8 int32_t namespace_;
9 float float_;
10 };
11
12 struct B {
13 int32_t namespace_;
14 float float_;
15 };
16
17 struct C {
18 enum class Tag : uint8_t {
19 D,
20 };
21
22 struct D_Body {
23 int32_t namespace_;
24 float float_;
25 };
26
27 Tag tag;
28 union {
29 D_Body d;
30 };
31 };
32
33 struct E {
34 enum class Tag : uint8_t {
35 Double,
36 Float,
37 };
38
39 struct Double_Body {
40 double _0;
41 };
42
43 struct Float_Body {
44 float _0;
45 };
46
47 Tag tag;
48 union {
49 Double_Body double_;
50 Float_Body float_;
51 };
52 };
53
54 struct F {
55 enum class Tag : uint8_t {
56 double_,
57 float_,
58 };
59
60 struct double_Body {
61 double _0;
62 };
63
64 struct float_Body {
65 float _0;
66 };
67
68 Tag tag;
69 union {
70 double_Body double_;
71 float_Body float_;
72 };
73 };
74
75 extern "C" {
76
77 void root(A a, B b, C c, E e, F f, int32_t namespace_, float float_);
78
79 } // extern "C"