Commit 54353978 by Paolo Carlini

pr56193.cc: Tweak.

2013-02-07  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/27_io/basic_ios/pr56193.cc: Tweak.

From-SVN: r195852
parent b31317e4
2013-02-07 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/27_io/basic_ios/pr56193.cc: Tweak.
2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net> 2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net>
PR libstdc++/56193
* include/bits/basic_ios.h: Replace operator void*() const * include/bits/basic_ios.h: Replace operator void*() const
with explicit operator bool() const in C++11 and greater. with explicit operator bool() const in C++11 and greater.
* testsuite/27_io/basic_ios/pr56193.cc: New file. * testsuite/27_io/basic_ios/pr56193.cc: New file.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// 2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net> // 2013-02-06 Edward Smith-Rowland <3dw4rd@verizon.net>
// //
// Copyright (C) 2007-2013 Free Software Foundation, Inc. // Copyright (C) 2013 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // 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 // software; you can redistribute it and/or modify it under the
...@@ -23,11 +23,9 @@ ...@@ -23,11 +23,9 @@
#include <iostream> #include <iostream>
// PR libstdc++/56193 // PR libstdc++/56193
void
int
test01() test01()
{ {
std::cout << std::cout; // { dg-error "cannot bind" } std::cout << std::cout; // { dg-error "cannot bind" }
} }
// { dg-error "initializing argument" "" { target *-*-* } 602 } // { dg-error "initializing argument" "" { target *-*-* } 602 }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment