Files
cbindgen/tests/expectations/monomorph-2.cpp
T
2017-11-09 18:04:22 -05:00

38 lines
366 B
C++

#include <cstdint>
#include <cstdlib>
extern "C" {
struct A;
struct B;
struct List_B {
B *members;
size_t count;
};
struct List_A {
A *members;
size_t count;
};
void bar(List_B b);
void foo(List_A a);
} // extern "C"
template<typename T>
struct List;
template<>
struct List<B> : public List_B {
};
template<>
struct List<A> : public List_A {
};