diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2013-03-29 17:20:04 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2013-03-29 17:20:04 +0000 |
| commit | 84718fde7aa610b1eef952f7dfebdfc9f25af6da (patch) | |
| tree | dc2928b879331d4665b0c058361658397fd4237c /libcxx/test | |
| parent | 70671b9937e86324cbe27ef995a3f85cd6efe715 (diff) | |
| download | bcm5719-llvm-84718fde7aa610b1eef952f7dfebdfc9f25af6da.tar.gz bcm5719-llvm-84718fde7aa610b1eef952f7dfebdfc9f25af6da.zip | |
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
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 c98d5312675..896026de17b 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 @@ 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 } |

