Files
cbindgen/tests/expectations/simplify_option_ptr.cpp
T
Emilio Cobos Álvarez 7312b997be ir: simplify_standard_types should be recursive.
Stuff like *mut Option<&mut Foo> should really be *mut *mut Foo for
example.
2021-02-24 18:36:40 +01:00

31 lines
443 B
C++

#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"