Files
cbindgen/tests/expectations/annotation.cpp
T
2017-11-09 18:04:22 -05:00

30 lines
357 B
C++

#include <cstdint>
#include <cstdlib>
extern "C" {
enum class C : uint32_t {
X = 2,
Y = 3,
};
struct A {
int32_t m0;
bool operator<(const A& other) const {
return m0 < other.m0;
}
bool operator<=(const A& other) const {
return m0 <= other.m0;
}
};
struct B {
int32_t x;
float y;
};
void root(A x, B y, C z);
} // extern "C"