Debian Codegraph @

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

raw
1 #if 0
2 ''' '
3 #endif
4
5 #ifdef __cplusplus
6 template <typename T>
7 using MaybeUninit = 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 using Foo = NotReprC<MaybeUninit<const int32_t*>>;
25
26 struct MyStruct {
27 MaybeUninit<const int32_t*> number;
28 };
29
30 extern "C" {
31
32 void root(const Foo *a, const MyStruct *with_maybe_uninit);
33
34 } // extern "C"