From 8b25c00ef17841f6e01e3d83444b065101cb5300 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Fri, 29 Mar 2013 17:20:04 +0000 Subject: [PATCH] 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 --- .../sequences/vector/vector.capacity/shrink_to_fit.pass.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 }