aboutsummaryrefslogtreecommitdiffstats
path: root/lib/entityx/cxx11/c++11-test-cstdint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/entityx/cxx11/c++11-test-cstdint.cpp')
-rw-r--r--lib/entityx/cxx11/c++11-test-cstdint.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/entityx/cxx11/c++11-test-cstdint.cpp b/lib/entityx/cxx11/c++11-test-cstdint.cpp
new file mode 100644
index 0000000..6ba852f
--- /dev/null
+++ b/lib/entityx/cxx11/c++11-test-cstdint.cpp
@@ -0,0 +1,10 @@
+#include <cstdint>
+int main()
+{
+ bool test =
+ (sizeof(std::int8_t) == 1) &&
+ (sizeof(std::int16_t) == 2) &&
+ (sizeof(std::int32_t) == 4) &&
+ (sizeof(std::int64_t) == 8);
+ return test ? 0 : 1;
+}