Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/reserved.both.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 typedef struct A {
7 int32_t namespace_;
8 float float_;
9 } A;
10
11 typedef struct B {
12 int32_t namespace_;
13 float float_;
14 } B;
15
16 enum C_Tag {
17 D,
18 };
19 typedef uint8_t C_Tag;
20
21 typedef struct D_Body {
22 int32_t namespace_;
23 float float_;
24 } D_Body;
25
26 typedef struct C {
27 C_Tag tag;
28 union {
29 D_Body d;
30 };
31 } C;
32
33 enum E_Tag {
34 Double,
35 Float,
36 };
37 typedef uint8_t E_Tag;
38
39 typedef struct E {
40 E_Tag tag;
41 union {
42 struct {
43 double double_;
44 };
45 struct {
46 float float_;
47 };
48 };
49 } E;
50
51 enum F_Tag {
52 double_,
53 float_,
54 };
55 typedef uint8_t F_Tag;
56
57 typedef struct F {
58 F_Tag tag;
59 union {
60 struct {
61 double double_;
62 };
63 struct {
64 float float_;
65 };
66 };
67 } F;
68
69 void root(struct A a,
70 struct B b,
71 struct C c,
72 struct E e,
73 struct F f,
74 int32_t namespace_,
75 float float_);