Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / ACE / tests / Compiler_Features_25_Test.cpp
blobe273b1662241a5dbfc428e90564e0794c941fbde
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 struct Foo
12 using is_true = std::true_type;
13 using is_false = std::false_type;
16 int
17 run_main (int, ACE_TCHAR *[])
19 ACE_START_TEST (ACE_TEXT("Compiler_Features_25_Test"));
21 int retval = 0;
22 if (Foo::is_true() && !Foo::is_false())
24 ACE_DEBUG ((LM_INFO,
25 ACE_TEXT ("Compiler Feature 25 Test does compile and run.\n")));
27 else
29 ACE_ERROR ((LM_ERROR,
30 ACE_TEXT ("ERROR: Compiler Feature 25 Test does not run correctly.\n")));
33 ACE_END_TEST;
35 return retval;