summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/testsuite/19_diagnostics/error_code/cons/1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/19_diagnostics/error_code/cons/1.cc')
-rw-r--r--libstdc++-v3/testsuite/19_diagnostics/error_code/cons/1.cc21
1 files changed, 2 insertions, 19 deletions
diff --git a/libstdc++-v3/testsuite/19_diagnostics/error_code/cons/1.cc b/libstdc++-v3/testsuite/19_diagnostics/error_code/cons/1.cc
index ea1316d067a..8ba68d645e1 100644
--- a/libstdc++-v3/testsuite/19_diagnostics/error_code/cons/1.cc
+++ b/libstdc++-v3/testsuite/19_diagnostics/error_code/cons/1.cc
@@ -1,7 +1,7 @@
// { dg-options "-std=gnu++0x" }
// 2007-08-22 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008 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
@@ -20,24 +20,7 @@
// USA.
#include <system_error>
-#include <testsuite_hooks.h>
-
-namespace __gnu_test
-{
- struct test_category : public std::error_category
- {
- virtual std::posix_error::posix_errno
- posix(int __v) const
- { return std::posix_error::posix_errno(__v); }
-
- virtual const std::string&
- name() const
- {
- static std::string s("__gnu_test::test_category");
- return s;
- }
- };
-}
+#include <testsuite_error.h>
int main()
{
OpenPOWER on IntegriCloud