Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/enum_self.compat.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 typedef struct {
7 const int32_t *something;
8 } Foo_Bar;
9
10 enum Bar_Tag
11 #ifdef __cplusplus
12 : uint8_t
13 #endif // __cplusplus
14 {
15 Min,
16 Max,
17 Other,
18 };
19 #ifndef __cplusplus
20 typedef uint8_t Bar_Tag;
21 #endif // __cplusplus
22
23 typedef union {
24 Bar_Tag tag;
25 struct {
26 Bar_Tag min_tag;
27 Foo_Bar min;
28 };
29 struct {
30 Bar_Tag max_tag;
31 Foo_Bar max;
32 };
33 } Bar;
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif // __cplusplus
38
39 void root(Bar b);
40
41 #ifdef __cplusplus
42 } // extern "C"
43 #endif // __cplusplus