.cargo/vendor/cbindgen/tests/expectations/monomorph_2.cpp
raw| 1 | #include <cstdarg> |
| 2 | #include <cstdint> |
| 3 | #include <cstdlib> |
| 4 | #include <ostream> |
| 5 | #include <new> |
| 6 | |
| 7 | struct A; |
| 8 | |
| 9 | struct B; |
| 10 | |
| 11 | template<typename T> |
| 12 | struct List { |
| 13 | T *members; |
| 14 | uintptr_t count; |
| 15 | }; |
| 16 | |
| 17 | extern "C" { |
| 18 | |
| 19 | void foo(List<A> a); |
| 20 | |
| 21 | void bar(List<B> b); |
| 22 | |
| 23 | } // extern "C" |