diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2017-04-17 14:18:44 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2017-04-17 14:18:44 +0000 |
| commit | d588b56d9c09daecfb098bf5e276a01f2fb18ec0 (patch) | |
| tree | 6d4a2145075871e7a81fd5580f1106906728dc72 /libcxx/test/std/containers/sequences/vector | |
| parent | 7de60c501cc9e6f85c9332541ede3c8b7f17f293 (diff) | |
| download | bcm5719-llvm-d588b56d9c09daecfb098bf5e276a01f2fb18ec0.tar.gz bcm5719-llvm-d588b56d9c09daecfb098bf5e276a01f2fb18ec0.zip | |
Sigh. Once again forgot about the 'no exceptions' bots.
llvm-svn: 300451
Diffstat (limited to 'libcxx/test/std/containers/sequences/vector')
| -rw-r--r-- | libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp | 4 | ||||
| -rw-r--r-- | libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter_iter.pass.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp index f9d1171b9c3..785a5be8b74 100644 --- a/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp @@ -18,6 +18,7 @@ #include "min_allocator.h" #include "asan_testing.h" +#ifndef TEST_HAS_NO_EXCEPTIONS struct Throws { Throws() : v_(0) {} Throws(int v) : v_(v) {} @@ -30,6 +31,7 @@ struct Throws { }; bool Throws::sThrows = false; +#endif int main() { @@ -85,6 +87,7 @@ int main() assert(is_contiguous_container_asan_correct(l1)); } #endif +#ifndef TEST_HAS_NO_EXCEPTIONS // Test for LWG2853: // Throws: Nothing unless an exception is thrown by the assignment operator or move assignment operator of T. { @@ -96,4 +99,5 @@ int main() v.erase(v.begin()); assert(v.size() == 0); } +#endif } diff --git a/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter_iter.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter_iter.pass.cpp index 48f61ddebc0..2fc4981b6c9 100644 --- a/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter_iter.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter_iter.pass.cpp @@ -18,6 +18,7 @@ #include "min_allocator.h" #include "asan_testing.h" +#ifndef TEST_HAS_NO_EXCEPTIONS struct Throws { Throws() : v_(0) {} Throws(int v) : v_(v) {} @@ -30,6 +31,7 @@ struct Throws { }; bool Throws::sThrows = false; +#endif int main() { @@ -138,6 +140,7 @@ int main() assert(is_contiguous_container_asan_correct(outer[1])); } #endif +#ifndef TEST_HAS_NO_EXCEPTIONS // Test for LWG2853: // Throws: Nothing unless an exception is thrown by the assignment operator or move assignment operator of T. { @@ -149,4 +152,5 @@ int main() v.erase(v.begin(), v.end()); assert(v.size() == 0); } +#endif } |

