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/maybeuninit.cpp

35 lines
454 B
C++
Raw Normal View History

#if 0
''' '
#endif
#ifdef __cplusplus
template <typename T>
using MaybeUninit = T;
#endif
#if 0
' '''
#endif
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
template<typename T = void>
struct NotReprC;
using Foo = NotReprC<MaybeUninit<const int32_t*>>;
struct MyStruct {
MaybeUninit<const int32_t*> number;
};
extern "C" {
void root(const Foo *a, const MyStruct *with_maybe_uninit);
} // extern "C"