-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target c++11 } }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
// 2007-08-22 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007-2022 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
#include <system_error>
#include <testsuite_error.h>
-// unspecified bool operator positive tests
int main()
{
- bool test __attribute__((unused)) = true;
-
std::error_code e1;
- std::error_code e2(std::errc::operation_not_supported);
+ std::error_code e2(std::make_error_code(std::errc::operation_not_supported));
VERIFY( e1 == e1 );
VERIFY( !(e1 == e2) );