Finally get the test suite passing in C++03!!

After months of work there are only 4 tests still failing in C++03.
This patch fixes those tests.

All of the libc++ builders should be green.


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@246275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2015-08-28 05:46:17 +00:00
parent ba3e81f6a8
commit 87813277b3
4 changed files with 12 additions and 3 deletions

View File

@@ -87,7 +87,8 @@ int main() {
}
{
// Test with in-place shared_count.
Ptr p = std::make_shared<int>(42);
int val = 42;
Ptr p = std::make_shared<int>(val);
run_test(p);
assert(p.use_count() == 1);
}