summaryrefslogtreecommitdiff
path: root/tests/headers/short-enums.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/short-enums.hpp')
-rw-r--r--tests/headers/short-enums.hpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/headers/short-enums.hpp b/tests/headers/short-enums.hpp
deleted file mode 100644
index 14f833de..00000000
--- a/tests/headers/short-enums.hpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// bindgen-flags: --rustified-enum ".*" -- -std=c++11 -fshort-enums
-
-typedef enum {
- SOME_VALUE = 0x1,
-} one_byte_t;
-
-static_assert(sizeof(one_byte_t) == 1, "Short enums should work");
-
-typedef enum {
- SOME_OTHER_VALUE = 0x100,
-} two_byte_t;
-
-static_assert(sizeof(two_byte_t) == 2, "");
-
-typedef enum {
- SOME_BIGGER_VALUE = 0x1000000,
-} four_byte_t;
-
-static_assert(sizeof(four_byte_t) == 4, "");