commit | 84718fde7aa610b1eef952f7dfebdfc9f25af6da | [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 | dc2928b879331d4665b0c058361658397fd4237c | |
parent | 70671b9937e86324cbe27ef995a3f85cd6efe715 [diff] |
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
diff --git a/libcxx/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp b/libcxx/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp index c98d531..896026d 100644 --- a/libcxx/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp +++ b/libcxx/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 }