Debian Codegraph @

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

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 enum C {
7 X = 2,
8 Y,
9 };
10 typedef uint32_t C;
11
12 typedef struct A {
13 int32_t _0;
14 } A;
15
16 typedef struct B {
17 int32_t x;
18 float y;
19 } B;
20
21 typedef struct D {
22 uint8_t List;
23 uintptr_t Of;
24 struct B Things;
25 } D;
26
27 enum F_Tag {
28 Foo,
29 Bar,
30 Baz,
31 };
32 typedef uint8_t F_Tag;
33
34 typedef struct Bar_Body {
35 F_Tag tag;
36 uint8_t x;
37 int16_t y;
38 } Bar_Body;
39
40 typedef union F {
41 F_Tag tag;
42 struct {
43 F_Tag foo_tag;
44 int16_t foo;
45 };
46 Bar_Body bar;
47 } F;
48
49 enum H_Tag {
50 Hello,
51 There,
52 Everyone,
53 };
54 typedef uint8_t H_Tag;
55
56 typedef struct There_Body {
57 uint8_t x;
58 int16_t y;
59 } There_Body;
60
61 typedef struct H {
62 H_Tag tag;
63 union {
64 struct {
65 int16_t hello;
66 };
67 There_Body there;
68 };
69 } H;
70
71 enum I_Tag {
72 ThereAgain,
73 SomethingElse,
74 };
75 typedef uint8_t I_Tag;
76
77 typedef struct ThereAgain_Body {
78 uint8_t x;
79 int16_t y;
80 } ThereAgain_Body;
81
82 typedef struct I {
83 I_Tag tag;
84 union {
85 ThereAgain_Body there_again;
86 };
87 } I;
88
89 void root(struct A a, struct B b, C c, struct D d, union F f, struct H h, struct I i);