// { 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
// 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;
- }
- };
-
- struct test_derived_category : public test_category
- {
- virtual const std::string&
- name() const
- {
- static std::string s("__gnu_test::test_derived_category");
- return s;
- }
- };
-}
+#include <testsuite_error.h>
int main()
{