Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / ACE / tests / Compiler_Features_17_Test.cpp
blobe7a5f7268139ef444983d8153f4b01130e5b3b04
1 /**
2 * This program checks if the compiler / platform supports constexpr
3 */
5 #include "test_config.h"
7 #include <limits>
8 #include <stdint.h>
10 constexpr int get_five()
12 return 5;
15 class A
17 public:
18 A ();
19 static constexpr char const* adapter_name = "TAOX11_AnyInsert_Adapter";
20 static constexpr uint32_t bound = std::numeric_limits<uint32_t>::max();
23 int
24 run_main (int, ACE_TCHAR *[])
26 ACE_START_TEST (ACE_TEXT("Compiler_Features_17_Test"));
28 ACE_DEBUG ((LM_INFO,
29 ACE_TEXT ("Constexpr works.\n")));
31 ACE_END_TEST;
33 return 0;