This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-zerotierone/zeroidc/vendor/cbindgen/tests/expectations/manuallydrop.both.compat.c

44 lines
621 B
C

#if 0
''' '
#endif
#ifdef __cplusplus
template <typename T>
using ManuallyDrop = T;
#endif
#if 0
' '''
#endif
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef struct NotReprC_Point NotReprC_Point;
typedef struct NotReprC_Point Foo;
typedef struct Point {
int32_t x;
int32_t y;
} Point;
typedef struct MyStruct {
struct Point point;
} MyStruct;
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void root(const Foo *a, const struct MyStruct *with_manual_drop);
void take(struct Point with_manual_drop);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus