Files
cbindgen/tests/expectations/cell.cpp
T
Emilio Cobos Álvarez d652d29ae2 ir: Be less strict when instantiating opaque types.
There are two situations where we can legitimately end up with a
different number of template params.

Fixes #532.
Fixes #527.
2020-08-15 13:40:54 +02:00

23 lines
328 B
C++

#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <new>
template<typename T = void>
struct NotReprC;
template<typename T = void>
struct RefCell;
using Foo = NotReprC<RefCell<int32_t>>;
struct MyStruct {
int32_t number;
};
extern "C" {
void root(const Foo *a, const MyStruct *with_cell);
} // extern "C"