diff options
Diffstat (limited to 'cxx11/c++11-test-cstdint.cpp')
-rw-r--r-- | cxx11/c++11-test-cstdint.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cxx11/c++11-test-cstdint.cpp b/cxx11/c++11-test-cstdint.cpp new file mode 100644 index 0000000..58d4381 --- /dev/null +++ b/cxx11/c++11-test-cstdint.cpp @@ -0,0 +1,10 @@ +#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;
+}
|