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"
11 run_main (int, ACE_TCHAR
*[])
13 ACE_START_TEST (ACE_TEXT("Compiler_Features_26_Test"));
16 std::shared_ptr
<int> a
,b
,c
,d
;
18 a
= std::make_shared
<int> (10);
19 b
= std::make_shared
<int> (10);
22 if (!(a
!=b
) || (a
==b
))
25 ACE_TEXT ("Problem using a!=b\n")));
28 if (!(b
==c
) || (b
!=c
))
31 ACE_TEXT ("Problem using b==c\n")));
34 if ((c
==d
) || !(d
!=c
))
37 ACE_TEXT ("Problem using b==c\n")));
40 if ((a
==nullptr) || !(a
!=nullptr))
43 ACE_TEXT ("Problem using a==nullptr\n")));
46 if ((b
==nullptr) || !(b
!=nullptr))
49 ACE_TEXT ("Problem using b==nullptr\n")));
52 if ((c
==nullptr) || !(c
!=nullptr))
55 ACE_TEXT ("Problem using c==nullptr\n")));
58 if ((d
!=nullptr) || !(d
==nullptr))
61 ACE_TEXT ("Problem using d!=nullptr\n")));
68 ACE_TEXT ("Compiler Feature 26 Test does compile and run.\n")));