diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-18 19:11:41 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-18 19:11:41 +0000 |
commit | be940c0f5370d24da4650cf9be689524fbe65f53 (patch) | |
tree | c4fe993c1cd3225a8128e966980cbd2cd0da9199 /libstdc++-v3/testsuite/ext/array_allocator/3.cc | |
parent | 2c2a2b0fb8d265af45a2f25eb3bb857d3be833ef (diff) | |
download | ppe42-gcc-be940c0f5370d24da4650cf9be689524fbe65f53.tar.gz ppe42-gcc-be940c0f5370d24da4650cf9be689524fbe65f53.zip |
2004-11-18 Paolo Carlini <pcarlini@suse.de>
* testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
* testsuite/ext/array_allocator/1.cc: Likewise.
* testsuite/ext/array_allocator/2.cc: Likewise.
* testsuite/ext/array_allocator/3.cc: Likewise.
* testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90878 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/ext/array_allocator/3.cc')
-rw-r--r-- | libstdc++-v3/testsuite/ext/array_allocator/3.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/ext/array_allocator/3.cc b/libstdc++-v3/testsuite/ext/array_allocator/3.cc index 297b902c883..97ffbb467c5 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/3.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/3.cc @@ -25,9 +25,9 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -#include <cassert> #include <string> #include <ext/array_allocator.h> +#include <testsuite_hooks.h> typedef char char_type; typedef std::char_traits<char_type> traits_type; @@ -37,6 +37,8 @@ array_type extern_array; void test01() { + bool test __attribute__((unused)) = true; + using std::basic_string; typedef __gnu_cxx::array_allocator<char_type, array_type> allocator_type; typedef basic_string<char_type, traits_type, allocator_type> string_type; @@ -51,11 +53,11 @@ void test01() } catch(std::bad_alloc& obj) { - assert(true); + VERIFY( true ); } catch(...) { - assert(false); + VERIFY( false ); } } |