.cargo/vendor/cbindgen/tests/expectations/lifetime_arg.cpp
raw| 1 | #include <cstdarg> |
| 2 | #include <cstdint> |
| 3 | #include <cstdlib> |
| 4 | #include <ostream> |
| 5 | #include <new> |
| 6 | |
| 7 | struct A { |
| 8 | const int32_t *data; |
| 9 | }; |
| 10 | |
| 11 | struct E { |
| 12 | enum class Tag { |
| 13 | V, |
| 14 | U, |
| 15 | }; |
| 16 | |
| 17 | struct U_Body { |
| 18 | const uint8_t *_0; |
| 19 | }; |
| 20 | |
| 21 | Tag tag; |
| 22 | union { |
| 23 | U_Body u; |
| 24 | }; |
| 25 | }; |
| 26 | |
| 27 | extern "C" { |
| 28 | |
| 29 | void root(A _a, E _e); |
| 30 | |
| 31 | } // extern "C" |