Doxygen changes
[ACE_TAO.git] / ACE / tests / Compiler_Features_25_Test.cpp
blobfd3e13c49e0600daacf096a9f10d65a076404e91
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 struct Foo
14 typedef std::true_type is_true;
15 typedef std::false_type is_false;
18 int
19 run_main (int, ACE_TCHAR *[])
21 ACE_START_TEST (ACE_TEXT("Compiler_Features_25_Test"));
23 int retval = 0;
24 if (Foo::is_true() && !Foo::is_false())
26 ACE_DEBUG ((LM_INFO,
27 ACE_TEXT ("Compiler Feature 25 Test does compile and run.\n")));
29 else
31 ACE_ERROR ((LM_ERROR,
32 ACE_TEXT ("ERROR: Compiler Feature 25 Test does not run correctly.\n")));
35 ACE_END_TEST;
37 return retval;
40 #else
41 int
42 run_main (int, ACE_TCHAR *[])
44 ACE_START_TEST (ACE_TEXT("Compiler_Features_25_Test"));
46 ACE_DEBUG ((LM_INFO,
47 ACE_TEXT ("No C++11 support enabled\n")));
49 ACE_END_TEST;
50 return 0;
53 #endif