Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / ACE / tests / Compiler_Features_23_Test.cpp
blob711e46fb231d8da9e27b51e51f1792cda97eaf37
1 /**
2 * This program checks if the compiler doesn't have a certain bug
3 * that we encountered when testing C++11 features
4 */
6 #include "test_config.h"
8 #include <array>
9 #include <string>
10 #include <cstdint>
12 std::array<std::string, 2> priority_names =
15 std::string("NOT USED"),
16 "P_PANIC"
20 std::string t (std::uint32_t prop)
22 std::uint32_t log = 0;
24 for (; prop > 1; ++log)
25 prop >>= 1;
27 return priority_names[log];
30 struct A { A(int) {} ; };
31 const std::array<A, 4> x = {{ 1, 1, 1, 1 }};
33 int
34 run_main (int, ACE_TCHAR *[])
36 ACE_START_TEST (ACE_TEXT("Compiler_Features_23_Test"));
38 ACE_DEBUG ((LM_INFO,
39 ACE_TEXT ("Compiler Feature 23 Test does compile and run.\n")));
41 ACE_UNUSED_ARG(x);
43 ACE_END_TEST;
45 return 0;