RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.
This commit is contained in:
41
zeroidc/vendor/cbindgen/tests/expectations/box.cpp
vendored
Normal file
41
zeroidc/vendor/cbindgen/tests/expectations/box.cpp
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
#if 0
|
||||
''' '
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
template <typename T>
|
||||
using Box = T*;
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
' '''
|
||||
#endif
|
||||
|
||||
|
||||
#include <cstdarg>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <ostream>
|
||||
#include <new>
|
||||
|
||||
template<typename T = void>
|
||||
struct NotReprC;
|
||||
|
||||
template<typename T = void>
|
||||
struct Option;
|
||||
|
||||
using Foo = NotReprC<Box<int32_t>>;
|
||||
|
||||
struct MyStruct {
|
||||
Box<int32_t> number;
|
||||
};
|
||||
|
||||
extern "C" {
|
||||
|
||||
void root(const Foo *a, const MyStruct *with_box);
|
||||
|
||||
void drop_box(Box<int32_t> x);
|
||||
|
||||
void drop_box_opt(Option<Box<int32_t>> x);
|
||||
|
||||
} // extern "C"
|
||||
Reference in New Issue
Block a user