.cargo/vendor/cbindgen/tests/expectations/constant_constexpr.cpp
raw| 1 | #include <cstdarg> |
| 2 | #include <cstdint> |
| 3 | #include <cstdlib> |
| 4 | #include <ostream> |
| 5 | #include <new> |
| 6 | |
| 7 | static const int64_t CONSTANT_I64 = 216; |
| 8 | |
| 9 | static const float CONSTANT_FLOAT32 = 312.292; |
| 10 | |
| 11 | static const uint32_t DELIMITER = ':'; |
| 12 | |
| 13 | static const uint32_t LEFTCURLY = '{'; |
| 14 | |
| 15 | struct Foo { |
| 16 | int32_t x; |
| 17 | static const int64_t CONSTANT_I64_BODY; |
| 18 | }; |
| 19 | inline const int64_t Foo::CONSTANT_I64_BODY = 216; |
| 20 | |
| 21 | static const Foo SomeFoo = Foo{ /* .x = */ 99 }; |