.cargo/vendor/cbindgen/tests/expectations/prefixed_struct_literal_deep.cpp
raw| 1 | #include <cstdarg> |
| 2 | #include <cstdint> |
| 3 | #include <cstdlib> |
| 4 | #include <ostream> |
| 5 | #include <new> |
| 6 | |
| 7 | struct PREFIXBar { |
| 8 | int32_t a; |
| 9 | }; |
| 10 | |
| 11 | struct PREFIXFoo { |
| 12 | int32_t a; |
| 13 | uint32_t b; |
| 14 | PREFIXBar bar; |
| 15 | }; |
| 16 | |
| 17 | constexpr static const PREFIXFoo PREFIXVAL = PREFIXFoo{ /* .a = */ 42, /* .b = */ 1337, /* .bar = */ PREFIXBar{ /* .a = */ 323 } }; |
| 18 | |
| 19 | extern "C" { |
| 20 | |
| 21 | void root(PREFIXFoo x); |
| 22 | |
| 23 | } // extern "C" |