]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_ostream/inserters_other/char/exceptions_failbit_throw.cc
9827.cc: New.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_ostream / inserters_other / char / exceptions_failbit_throw.cc
index 5abaf92b8042cbe11340361831d5c1c8c75776f3..0f7d3fbf142d1bdde2939bf14d20719d447a1237 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -44,17 +44,17 @@ void test9()
   try
     {
       stream << &sbuf;
-      VERIFY(false);
+      VERIFY( false );
     }
   catch (ios_base::failure&)
-    { VERIFY(false); }
+    { VERIFY( false ); }
   catch (__gnu_test::overflow_error&)
     { }
   catch (...)
-    { VERIFY(false); }
+    { VERIFY( false ); }
 
-  VERIFY(stream.rdstate() & ios_base::failbit);
-  VERIFY((stream.rdstate() & ios_base::badbit) == 0);
+  VERIFY( stream.rdstate() & ios_base::failbit );
+  VERIFY( (stream.rdstate() & ios_base::badbit) == 0 );
 }
 
 void test11()
@@ -67,17 +67,17 @@ void test11()
   try
     {
       stream << &bib;
-      VERIFY(false);
+      VERIFY( false );
     }
   catch (ios_base::failure&)
-    { VERIFY(false); }
+    { VERIFY( false ); }
   catch (__gnu_test::underflow_error&)
     { }
   catch (...)
-    { VERIFY(false); }
+    { VERIFY( false ); }
 
-  VERIFY(stream.rdstate() & ios_base::failbit);
-  VERIFY((stream.rdstate() & ios_base::badbit) == 0);
+  VERIFY( stream.rdstate() & ios_base::failbit );
+  VERIFY( (stream.rdstate() & ios_base::badbit) == 0 );
 }
 
 // libstdc++/9371