[libcxx] r178350 - The 3rd test in shrink_to_fit.pass.cpp can't possibly pass if exceptions are disabled, so #ifdef'ing out the test.
Howard Hinnant
hhinnant at apple.com
Fri Mar 29 10:20:05 PDT 2013
Author: hhinnant
Date: Fri Mar 29 12:20:04 2013
New Revision: 178350
URL: http://llvm.org/viewvc/llvm-project?rev=178350&view=rev
Log:
The 3rd test in shrink_to_fit.pass.cpp can't possibly pass if exceptions are disabled, so #ifdef'ing out the test.
Modified:
libcxx/trunk/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp
Modified: libcxx/trunk/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp?rev=178350&r1=178349&r2=178350&view=diff
==============================================================================
--- libcxx/trunk/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp (original)
+++ libcxx/trunk/test/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp Fri Mar 29 12:20:04 2013
@@ -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
}
More information about the cfe-commits
mailing list