ChaiScript/cmake/c++11-test-cstdint.cpp
2015-03-18 19:23:04 -06:00

11 lines
179 B
C++

#include <cstdint>
int main()
{
bool test =
(sizeof(int8_t) == 1) &&
(sizeof(int16_t) == 2) &&
(sizeof(int32_t) == 4) &&
(sizeof(int64_t) == 8);
return test ? 0 : 1;
}