Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/manuallydrop.cpp

raw
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 <cstdarg>
16 #include <cstdint>
17 #include <cstdlib>
18 #include <ostream>
19 #include <new>
20
21 template<typename T = void>
22 struct NotReprC;
23
24 struct Point {
25 int32_t x;
26 int32_t y;
27 };
28
29 using Foo = NotReprC<ManuallyDrop<Point>>;
30
31 struct MyStruct {
32 ManuallyDrop<Point> point;
33 };
34
35 extern "C" {
36
37 void root(const Foo *a, const MyStruct *with_manual_drop);
38
39 void take(ManuallyDrop<Point> with_manual_drop);
40
41 } // extern "C"