Files
cbindgen/tests/expectations/manuallydrop.cpp
T
2020-09-29 13:17:04 +02:00

30 lines
421 B
C++

#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <new>
template<typename T = void>
struct ManuallyDrop;
template<typename T = void>
struct NotReprC;
struct Point {
int32_t x;
int32_t y;
};
using Foo = NotReprC<ManuallyDrop<Point>>;
struct MyStruct {
Point point;
};
extern "C" {
void root(const Foo *a, const MyStruct *with_manual_drop);
void take(Point with_manual_drop);
} // extern "C"