forked from OSchip/llvm-project
The 3rd test in shrink_to_fit.pass.cpp can't possibly pass if exceptions are disabled, so #ifdef'ing out the test.
llvm-svn: 178350
This commit is contained in:
parent
70671b9937
commit
84718fde7a
|
|
@ -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…
Reference in New Issue