diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:05:35 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:05:35 +0000 |
| commit | 6012fe9abb1f01b1b5b4ca908464804c21ff8602 (patch) | |
| tree | a5232179237d9aaa3a03f9c783974fc5f09716c6 /test/std/containers/associative/set/clear.pass.cpp | |
| parent | 315d10f09ee888005b1da55e7bbb57d8a79b8447 (diff) | |
Notes
Diffstat (limited to 'test/std/containers/associative/set/clear.pass.cpp')
| -rw-r--r-- | test/std/containers/associative/set/clear.pass.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/std/containers/associative/set/clear.pass.cpp b/test/std/containers/associative/set/clear.pass.cpp index 7a5bf4b14a71a..1be3ed2b88773 100644 --- a/test/std/containers/associative/set/clear.pass.cpp +++ b/test/std/containers/associative/set/clear.pass.cpp @@ -11,11 +11,12 @@ // class set -// void clear(); +// void clear() noexcept; #include <set> #include <cassert> +#include "test_macros.h" #include "min_allocator.h" int main() @@ -36,6 +37,7 @@ int main() }; M m(ar, ar + sizeof(ar)/sizeof(ar[0])); assert(m.size() == 8); + ASSERT_NOEXCEPT(m.clear()); m.clear(); assert(m.size() == 0); } @@ -56,6 +58,7 @@ int main() }; M m(ar, ar + sizeof(ar)/sizeof(ar[0])); assert(m.size() == 8); + ASSERT_NOEXCEPT(m.clear()); m.clear(); assert(m.size() == 0); } |
