forked from boostorg/smart_ptr
Actually remove test cases from make_shared_array_create_test.cpp and allocate_shared_array_create_test.cpp that g++ does not handle.
[SVN r81262]
This commit is contained in:
@ -82,13 +82,6 @@ int main() {
|
|||||||
BOOST_TEST(a1[2] == 2);
|
BOOST_TEST(a1[2] == 2);
|
||||||
BOOST_TEST(a1[3] == 3);
|
BOOST_TEST(a1[3] == 3);
|
||||||
}
|
}
|
||||||
{
|
|
||||||
boost::shared_ptr<int[][2]> a1 = boost::allocate_shared<int[][2]>(std::allocator<int>(), { {0, 1}, {2, 3} });
|
|
||||||
BOOST_TEST(a1[0][0] == 0);
|
|
||||||
BOOST_TEST(a1[0][1] == 1);
|
|
||||||
BOOST_TEST(a1[1][0] == 2);
|
|
||||||
BOOST_TEST(a1[1][1] == 3);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
@ -82,13 +82,6 @@ int main() {
|
|||||||
BOOST_TEST(a1[2] == 2);
|
BOOST_TEST(a1[2] == 2);
|
||||||
BOOST_TEST(a1[3] == 3);
|
BOOST_TEST(a1[3] == 3);
|
||||||
}
|
}
|
||||||
{
|
|
||||||
boost::shared_ptr<int[][2]> a1 = boost::make_shared<int[][2]>({ {0, 1}, {2, 3} });
|
|
||||||
BOOST_TEST(a1[0][0] == 0);
|
|
||||||
BOOST_TEST(a1[0][1] == 1);
|
|
||||||
BOOST_TEST(a1[1][0] == 2);
|
|
||||||
BOOST_TEST(a1[1][1] == 3);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user