Doxygen changes
[ACE_TAO.git] / ACE / tests / Compiler_Features_36_Test.cpp
blob7b9096e0bd49f25e68e008011fdff22bace52d62
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 <type_traits>
12 template <typename T>
13 struct non_instantiatable
15 typedef typename T::THIS_TYPE_CANNOT_BE_INSTANTIATED type;
18 int
19 run_main (int, ACE_TCHAR *[])
21 ACE_START_TEST (ACE_TEXT("Compiler_Features_36_Test"));
23 bool const result = std::is_base_of<non_instantiatable<int>, void>::value;
24 ACE_UNUSED_ARG (result);
26 ACE_DEBUG ((LM_INFO,
27 ACE_TEXT ("C++11 support ok\n")));
29 ACE_END_TEST;
31 return 0;
34 #else
35 int
36 run_main (int, ACE_TCHAR *[])
38 ACE_START_TEST (ACE_TEXT("Compiler_Features_36_Test"));
40 ACE_DEBUG ((LM_INFO,
41 ACE_TEXT ("No C++11 support enabled\n")));
43 ACE_END_TEST;
44 return 0;
47 #endif