Debian Codegraph @

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

raw
1 #if 0
2 ''' '
3 #endif
4
5 #ifdef __cplusplus
6 template <typename T>
7 using Pin = T;
8 template <typename T>
9 using Box = T*;
10 #endif
11
12 #if 0
13 ' '''
14 #endif
15
16
17 #include <cstdarg>
18 #include <cstdint>
19 #include <cstdlib>
20 #include <ostream>
21 #include <new>
22
23 struct PinTest {
24 Pin<Box<int32_t>> pinned_box;
25 Pin<int32_t*> pinned_ref;
26 };
27
28 extern "C" {
29
30 void root(Pin<int32_t*> s, PinTest p);
31
32 } // extern "C"