Files
cbindgen/tests/expectations/rename.cpp
T
Kartikaya Gupta 5f6b223237 Add ostream header to all generated .cpp files.
Ideally we'd just do this when we need it, but the ostream derivation
will be controlled by both global config and per-structure config, so
it's hard to know exactly when we need it and when we don't.
2020-10-01 12:22:51 +02:00

39 lines
477 B
C++

#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
static const int32_t C_H = 10;
enum class C_E : uint8_t {
x = 0,
y = 1,
};
struct C_A;
struct C_C;
struct C_AwesomeB {
int32_t x;
float y;
};
union C_D {
int32_t x;
float y;
};
using C_F = C_A;
static const intptr_t C_I = (intptr_t)(C_F*)10;
extern "C" {
extern const int32_t G;
void root(const C_A *a, C_AwesomeB b, C_C c, C_D d, C_E e, C_F f);
} // extern "C"