summaryrefslogtreecommitdiff
path: root/asl/integers_tests.cpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-08-06 00:34:57 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-08-07 23:25:42 +0200
commit75b10758ba116eabed730d23e957f1d69a1e3cb8 (patch)
tree6fb656d6aa18e3b8fd67d0fed39b79234a23fc1d /asl/integers_tests.cpp
parent4228e82740f62b841799cfca04861fa217fb93a5 (diff)
Type traits
Diffstat (limited to 'asl/integers_tests.cpp')
-rw-r--r--asl/integers_tests.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/asl/integers_tests.cpp b/asl/integers_tests.cpp
new file mode 100644
index 0000000..0393a3c
--- /dev/null
+++ b/asl/integers_tests.cpp
@@ -0,0 +1,13 @@
+#include "asl/integers.hpp"
+
+static_assert(sizeof(int8_t) == 1);
+static_assert(sizeof(int16_t) == 2);
+static_assert(sizeof(int32_t) == 4);
+static_assert(sizeof(int64_t) == 8);
+
+static_assert(sizeof(uint8_t) == 1);
+static_assert(sizeof(uint16_t) == 2);
+static_assert(sizeof(uint32_t) == 4);
+static_assert(sizeof(uint64_t) == 8);
+
+int main() { return 0; }