Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / ACE / tests / Compiler_Features_17_Test.cpp
blobdf1220be936d558b86c7260cf9d104bc8f1ca9c4
1 /**
2 * This program checks if the compiler / platform supports constexpr
3 */
5 #include "test_config.h"
7 #if defined (ACE_HAS_CPP11)
9 #include <limits>
10 #include <stdint.h>
12 constexpr int get_five()
14 return 5;
17 class A
19 public:
20 A ();
21 static constexpr char const* adapter_name = "TAOX11_AnyInsert_Adapter";
22 static constexpr uint32_t bound = std::numeric_limits<uint32_t>::max();
25 int
26 run_main (int, ACE_TCHAR *[])
28 ACE_START_TEST (ACE_TEXT("Compiler_Features_17_Test"));
30 ACE_DEBUG ((LM_INFO,
31 ACE_TEXT ("Constexpr works.\n")));
33 ACE_END_TEST;
35 return 0;
38 #else
39 int
40 run_main (int, ACE_TCHAR *[])
42 ACE_START_TEST (ACE_TEXT("Compiler_Features_17_Test"));
44 ACE_DEBUG ((LM_INFO,
45 ACE_TEXT ("No C++11 support enabled\n")));
47 ACE_END_TEST;
48 return 0;
51 #endif