2 * This program checks if the compiler / platform supports strongly
6 #include "test_config.h"
8 #if defined (ACE_HAS_CPP11)
14 static constexpr uint32_t bound
= std::numeric_limits
<uint32_t>::max();
17 // First forward declare TCKind, this is legal with C++11
18 enum class TCKind
: uint32_t;
20 enum class TCKind
: uint32_t
27 // And another forward declared TCKind, after it has been
29 enum class TCKind
: uint32_t;
32 std::ostream
& operator<<
33 (std::ostream
& strm
,CORBA::TCKind _enumerator
)
35 switch (_enumerator
) {
36 case CORBA::TCKind::tk_null
: return strm
<< "CORBA::TCKind::tk_null"; break;
37 case CORBA::TCKind::tk_void
: return strm
<< "CORBA::TCKind::tk_void"; break;
43 run_main (int, ACE_TCHAR
*[])
45 ACE_START_TEST (ACE_TEXT("Compiler_Features_16_Test"));
48 ACE_TEXT ("Strongly typed enums work.\n")));
57 run_main (int, ACE_TCHAR
*[])
59 ACE_START_TEST (ACE_TEXT("Compiler_Features_16_Test"));
62 ACE_TEXT ("No C++11 support enabled\n")));