system_error (system_category): To system_category().
[gcc.git] / libstdc++-v3 / testsuite / 19_diagnostics / error_code / cons / 1.cc
index 742eb4099255ecfa110caabef5a63bae594a87f6..db5803a51cbca1512b58ed4d647c362ce37e0ab4 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-std=gnu++0x" }
 // 2007-08-22 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008, 2009 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
@@ -29,7 +29,7 @@ int main()
   // 1
   std::error_code e1;
   VERIFY( e1.value() == 0 );
-  VERIFY( e1.category() == std::system_category );
+  VERIFY( e1.category() == std::system_category() );
 
   // 2
   const __gnu_test::test_category cat;
@@ -40,7 +40,7 @@ int main()
   // 3
   std::error_code e3(std::errc::operation_not_supported);
   VERIFY( e3.value() == int(std::errc::operation_not_supported) );
-  VERIFY( e3.category() == std::generic_category );
+  VERIFY( e3.category() == std::generic_category() );
 
   return 0;
 }