diff --git a/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp b/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp index c98d53126..896026de1 100644 --- a/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp +++ b/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp @@ -31,6 +31,7 @@ int main() assert(v.capacity() == 101); assert(v.size() == 101); } +#ifndef _LIBCPP_NO_EXCEPTIONS { std::vector > v(100); v.push_back(1); @@ -38,4 +39,5 @@ int main() assert(v.capacity() == 200); assert(v.size() == 101); } +#endif }