Make x.0.10 publicly available
[ACE_TAO.git] / ACE / tests / Compiler_Features_36_Test.cpp
blob9a4f81c3accf95cbfb0c2e48128016203e177135
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 <type_traits>
10 template <typename T>
11 struct non_instantiatable
13 using type = typename T::THIS_TYPE_CANNOT_BE_INSTANTIATED;
16 int
17 run_main (int, ACE_TCHAR *[])
19 ACE_START_TEST (ACE_TEXT("Compiler_Features_36_Test"));
21 bool const result = std::is_base_of<non_instantiatable<int>, void>::value;
22 ACE_UNUSED_ARG (result);
24 ACE_DEBUG ((LM_INFO,
25 ACE_TEXT ("C++11 support ok\n")));
27 ACE_END_TEST;
29 return 0;