Also use Objects as part of an operation but as a result don't generate Any operation...
[ACE_TAO.git] / ACE / tests / Compiler_Features_23_Test.cpp
blob688c0a37bd9fe4fce43d660aabb95a7f6c9ca420
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 #if defined (ACE_HAS_CPP11)
10 #include <array>
11 #include <string>
12 #include <cstdint>
14 std::array<std::string, 2> priority_names =
17 std::string("NOT USED"),
18 "P_PANIC"
22 std::string t (std::uint32_t prop)
24 std::uint32_t log = 0;
26 for (; prop > 1; ++log)
27 prop >>= 1;
29 return priority_names[log];
32 struct A { A(int) {} ; };
33 const std::array<A, 4> x = {{ 1, 1, 1, 1 }};
35 int
36 run_main (int, ACE_TCHAR *[])
38 ACE_START_TEST (ACE_TEXT("Compiler_Features_23_Test"));
40 ACE_DEBUG ((LM_INFO,
41 ACE_TEXT ("Compiler Feature 23 Test does compile and run.\n")));
43 ACE_END_TEST;
45 return 0;
48 #else
49 int
50 run_main (int, ACE_TCHAR *[])
52 ACE_START_TEST (ACE_TEXT("Compiler_Features_23_Test"));
54 ACE_DEBUG ((LM_INFO,
55 ACE_TEXT ("No C++11 support enabled\n")));
57 ACE_END_TEST;
58 return 0;
61 #endif