| commit | 8b25c00ef17841f6e01e3d83444b065101cb5300 | [log] [tgz] |
|---|---|---|
| author | Howard Hinnant <hhinnant@apple.com> | Fri Mar 29 17:20:04 2013 +0000 |
| committer | Howard Hinnant <hhinnant@apple.com> | Fri Mar 29 17:20:04 2013 +0000 |
| tree | 02d48a086b495b7fd69c2380f7930f396c6ee030 | |
| parent | 302fa82a1cb1c1070a869e7ca6103d737b93a9ed [diff] |
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
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 c98d531..896026d 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 @@ 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 @@ assert(v.capacity() == 200); assert(v.size() == 101); } +#endif }