pr56193.cc: Tweak.

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

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

From-SVN: r195852
This commit is contained in:
Paolo Carlini 2013-02-07 15:20:58 +00:00
parent b31317e44f
commit 54353978a4
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,10 @@
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>
PR libstdc++/56193
* include/bits/basic_ios.h: Replace operator void*() const
with explicit operator bool() const in C++11 and greater.
* testsuite/27_io/basic_ios/pr56193.cc: New file.

View File

@ -3,7 +3,7 @@
// 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
// software; you can redistribute it and/or modify it under the
@ -23,11 +23,9 @@
#include <iostream>
// PR libstdc++/56193
int
void
test01()
{
std::cout << std::cout; // { dg-error "cannot bind" }
}
// { dg-error "initializing argument" "" { target *-*-* } 602 }