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:
30
zeroidc/vendor/cbindgen/tests/expectations/simplify_option_ptr.cpp
vendored
Normal file
30
zeroidc/vendor/cbindgen/tests/expectations/simplify_option_ptr.cpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
#include <cstdarg>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <ostream>
|
||||
#include <new>
|
||||
|
||||
struct Opaque;
|
||||
|
||||
template<typename T = void>
|
||||
struct Option;
|
||||
|
||||
struct Foo {
|
||||
const Opaque *x;
|
||||
Opaque *y;
|
||||
void (*z)();
|
||||
void (**zz)();
|
||||
};
|
||||
|
||||
union Bar {
|
||||
const Opaque *x;
|
||||
Opaque *y;
|
||||
void (*z)();
|
||||
void (**zz)();
|
||||
};
|
||||
|
||||
extern "C" {
|
||||
|
||||
void root(const Opaque *a, Opaque *b, Foo c, Bar d, Option<Opaque*> *e, void (*f)(const Opaque*));
|
||||
|
||||
} // extern "C"
|
||||
Reference in New Issue
Block a user