| 1 |
#if 0 |
| 2 |
''' ' |
| 3 |
#endif |
| 4 |
|
| 5 |
#ifdef __cplusplus |
| 6 |
template <typename T> |
| 7 |
using ManuallyDrop = T; |
| 8 |
#endif |
| 9 |
|
| 10 |
#if 0 |
| 11 |
' ''' |
| 12 |
#endif |
| 13 |
|
| 14 |
|
| 15 |
#include <stdarg.h> |
| 16 |
#include <stdbool.h> |
| 17 |
#include <stdint.h> |
| 18 |
#include <stdlib.h> |
| 19 |
|
| 20 |
typedef struct NotReprC_Point NotReprC_Point; |
| 21 |
|
| 22 |
typedef struct NotReprC_Point Foo; |
| 23 |
|
| 24 |
typedef struct Point { |
| 25 |
int32_t x; |
| 26 |
int32_t y; |
| 27 |
} Point; |
| 28 |
|
| 29 |
typedef struct MyStruct { |
| 30 |
struct Point point; |
| 31 |
} MyStruct; |
| 32 |
|
| 33 |
#ifdef __cplusplus |
| 34 |
extern "C" { |
| 35 |
#endif // __cplusplus |
| 36 |
|
| 37 |
void root(const Foo *a, const struct MyStruct *with_manual_drop); |
| 38 |
|
| 39 |
void take(struct Point with_manual_drop); |
| 40 |
|
| 41 |
#ifdef __cplusplus |
| 42 |
} // extern "C" |
| 43 |
#endif // __cplusplus |