Debian Codegraph @

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

raw
1 #include <cstdarg>
2 #include <cstdint>
3 #include <cstdlib>
4 #include <ostream>
5 #include <new>
6
7 struct Bar;
8
9 struct Foo {
10 int32_t a;
11 uint32_t b;
12 };
13 constexpr static const Foo Foo_FOO = Foo{ /* .a = */ 42, /* .b = */ 47 };
14 constexpr static const Foo Foo_FOO2 = Foo{ /* .a = */ 42, /* .b = */ 47 };
15 constexpr static const Foo Foo_FOO3 = Foo{ /* .a = */ 42, /* .b = */ 47 };
16
17
18 constexpr static const Foo BAR = Foo{ /* .a = */ 42, /* .b = */ 1337 };
19
20
21
22 extern "C" {
23
24 void root(Foo x, Bar bar);
25
26 } // extern "C"