Files
cbindgen/tests/expectations/namespaces_constant.cpp
T
IGI-111 d32127e3d7 Fix #229
Place constants back inside namespace and add a test to make sure they
are namespaced correctly.
2018-10-24 11:50:03 -05:00

23 lines
273 B
C++

#include <cstdint>
#include <cstdlib>
namespace constants {
namespace test {
static const int32_t FOO = 10;
static const float ZOM = 3.14;
struct Foo {
int32_t x[FOO];
};
extern "C" {
void root(Foo x);
} // extern "C"
} // namespace test
} // namespace constants