OpenTTD Source 20250206-master-g6089ed8059
enum_over_optimisation.cpp File Reference

Test whether we do not trigger an over optimisation of enums. More...

#include "../stdafx.h"
#include "../3rdparty/catch2/catch.hpp"

Go to the source code of this file.

Enumerations

enum  TestEnum : int8_t { ZERO , ONE , TWO }
 

Functions

 TEST_CASE ("EnumOverOptimisation_BoundsCheck")
 

Detailed Description

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.

Enumeration Type Documentation

◆ TestEnum

enum TestEnum : int8_t

Definition at line 18 of file enum_over_optimisation.cpp.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "EnumOverOptimisation_BoundsCheck"  )

Definition at line 24 of file enum_over_optimisation.cpp.