30 lines
357 B
C++
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"
|