diff options
Diffstat (limited to 'tests/headers/contains-vs-inherits-zero-sized.hpp')
-rw-r--r-- | tests/headers/contains-vs-inherits-zero-sized.hpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/headers/contains-vs-inherits-zero-sized.hpp b/tests/headers/contains-vs-inherits-zero-sized.hpp deleted file mode 100644 index d354b0a2..00000000 --- a/tests/headers/contains-vs-inherits-zero-sized.hpp +++ /dev/null @@ -1,21 +0,0 @@ -/** - * This should get an `_address` byte. - */ -struct Empty {}; - -/** - * This should not get an `_address` byte, so `sizeof(Inherits)` should be - * `1`. - */ -struct Inherits : public Empty { - bool b; -}; - -/** - * This should not get an `_address` byte, but contains `Empty` which *does* get - * one, so `sizeof(Contains)` should be `1 + 1`. - */ -struct Contains { - Empty empty; - bool b; -}; |