.cargo/vendor/cbindgen/tests/expectations/union_self.cpp
raw| 1 | #include <cstdarg> |
| 2 | #include <cstdint> |
| 3 | #include <cstdlib> |
| 4 | #include <ostream> |
| 5 | #include <new> |
| 6 | |
| 7 | template<typename T> |
| 8 | struct Foo { |
| 9 | const int32_t *something; |
| 10 | }; |
| 11 | |
| 12 | union Bar { |
| 13 | int32_t something; |
| 14 | Foo<Bar> subexpressions; |
| 15 | }; |
| 16 | |
| 17 | extern "C" { |
| 18 | |
| 19 | void root(Bar b); |
| 20 | |
| 21 | } // extern "C" |