OpenTTD Source 20250312-master-gcdcc6b491d
|
Test whether we do not trigger an over optimisation of enums. More...
Go to the source code of this file.
Enumerations | |
enum | TestEnum : int8_t { ZERO , ONE , TWO } |
enum class | TestEnumFlags : uint8_t { Zero = 0 , One = 1 << 0 , Two = 1 << 1 } |
Functions | |
TEST_CASE ("EnumOverOptimisation_BoundsCheck") | |
TEST_CASE ("EnumOverOptimisation_Bitmask") | |
Test whether we do not trigger an over optimisation of enums.
For more details, see http://gcc.gnu.org/PR43680 and PR#5246.
Definition in file enum_over_optimisation.cpp.
enum TestEnum : int8_t |
Definition at line 20 of file enum_over_optimisation.cpp.
|
strong |
Definition at line 35 of file enum_over_optimisation.cpp.
TEST_CASE | ( | "EnumOverOptimisation_Bitmask" | ) |
Definition at line 42 of file enum_over_optimisation.cpp.
TEST_CASE | ( | "EnumOverOptimisation_BoundsCheck" | ) |
Definition at line 26 of file enum_over_optimisation.cpp.