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