2 * This program checks if the compiler doesn't have a certain bug
3 * that we encountered when testing C++11 features
6 #include "test_config.h"
8 #if defined (ACE_HAS_CPP11)
13 run_main (int, ACE_TCHAR
*[])
15 ACE_START_TEST (ACE_TEXT("Compiler_Features_26_Test"));
18 std::shared_ptr
<int> a
,b
,c
,d
;
20 a
= std::make_shared
<int> (10);
21 b
= std::make_shared
<int> (10);
24 if (!(a
!=b
) || (a
==b
))
27 ACE_TEXT ("Problem using a!=b\n")));
30 if (!(b
==c
) || (b
!=c
))
33 ACE_TEXT ("Problem using b==c\n")));
36 if ((c
==d
) || !(d
!=c
))
39 ACE_TEXT ("Problem using b==c\n")));
42 if ((a
==nullptr) || !(a
!=nullptr))
45 ACE_TEXT ("Problem using a==nullptr\n")));
48 if ((b
==nullptr) || !(b
!=nullptr))
51 ACE_TEXT ("Problem using b==nullptr\n")));
54 if ((c
==nullptr) || !(c
!=nullptr))
57 ACE_TEXT ("Problem using c==nullptr\n")));
60 if ((d
!=nullptr) || !(d
==nullptr))
63 ACE_TEXT ("Problem using d!=nullptr\n")));
70 ACE_TEXT ("Compiler Feature 26 Test does compile and run.\n")));
80 run_main (int, ACE_TCHAR
*[])
82 ACE_START_TEST (ACE_TEXT("Compiler_Features_26_Test"));
85 ACE_TEXT ("No C++11 support enabled\n")));