Compile fixes
[ACE_TAO.git] / ACE / tests / Compiler_Features_35_Test.cpp
blob3193b57dfd350ff06f529237434e6d71d1a1f414
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 <memory>
10 class foo_impl;
11 struct foo_impl_deleter
13 void operator()(foo_impl *p);
16 class Foo
18 private:
19 std::unique_ptr<foo_impl, foo_impl_deleter> impl_;
20 std::shared_ptr<foo_impl> impl2 {nullptr, foo_impl_deleter ()};
21 } impl_;
23 class foo_impl {};
25 void foo_impl_deleter::operator()(foo_impl *p)
27 delete p;
30 int
31 run_main (int, ACE_TCHAR *[])
33 ACE_START_TEST (ACE_TEXT("Compiler_Features_35_Test"));
35 ACE_DEBUG ((LM_INFO,
36 ACE_TEXT ("C++11 support ok\n")));
38 ACE_END_TEST;
40 return 0;