The 3rd test in shrink_to_fit.pass.cpp can't possibly pass if exceptions are disabled, so #ifdef'ing out the test.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@178350 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
302fa82a1c
commit
8b25c00ef1
@ -31,6 +31,7 @@ int main()
|
||||
assert(v.capacity() == 101);
|
||||
assert(v.size() == 101);
|
||||
}
|
||||
#ifndef _LIBCPP_NO_EXCEPTIONS
|
||||
{
|
||||
std::vector<int, stack_allocator<int, 400> > v(100);
|
||||
v.push_back(1);
|
||||
@ -38,4 +39,5 @@ int main()
|
||||
assert(v.capacity() == 200);
|
||||
assert(v.size() == 101);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user