.cargo/vendor/cbindgen/tests/expectations/enum_discriminant.cpp
raw| 1 | #include <cstdarg> |
| 2 | #include <cstdint> |
| 3 | #include <cstdlib> |
| 4 | #include <ostream> |
| 5 | #include <new> |
| 6 | |
| 7 | constexpr static const int8_t FOURTY_FOUR = 4; |
| 8 | |
| 9 | enum class E : int8_t { |
| 10 | A = 1, |
| 11 | B = -1, |
| 12 | C = (1 + 2), |
| 13 | D = FOURTY_FOUR, |
| 14 | F = 5, |
| 15 | G = (int8_t)54, |
| 16 | H = (int8_t)false, |
| 17 | }; |
| 18 | |
| 19 | extern "C" { |
| 20 | |
| 21 | void root(const E*); |
| 22 | |
| 23 | } // extern "C" |