Commit 979c310f by Benjamin Kosnik Committed by Benjamin Kosnik

copy_neg.cc: Remove excess errors dg marker, use dg-errors instead.


2003-05-13  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
	excess errors dg marker, use dg-errors instead.
	* testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
	* testsuite/20_util/auto_ptr_neg.cc: Same.

From-SVN: r66797
parent c2d635bc
2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
excess errors dg marker, use dg-errors instead.
* testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
* testsuite/20_util/auto_ptr_neg.cc: Same.
2003-05-12 Benjamin Kosnik <bkoz@redhat.com> 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
* include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
......
// Copyright (C) 2002 Free Software Foundation // { dg-do compile }
// Copyright (C) 2002, 2003 Free Software Foundation
// //
// 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
...@@ -21,9 +23,6 @@ ...@@ -21,9 +23,6 @@
#include <memory> #include <memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
// { dg-do compile }
// { dg-excess-errors "" }
// via Jack Reeves <jack_reeves@hispeed.ch> // via Jack Reeves <jack_reeves@hispeed.ch>
// libstdc++/3946 // libstdc++/3946
// http://gcc.gnu.org/ml/libstdc++/2002-07/msg00024.html // http://gcc.gnu.org/ml/libstdc++/2002-07/msg00024.html
...@@ -37,7 +36,7 @@ int ...@@ -37,7 +36,7 @@ int
test01() test01()
{ {
std::auto_ptr<Base> ptr2; std::auto_ptr<Base> ptr2;
ptr2 = new Base; // { dg-error "no" "candidates" "auto_ptr"} ptr2 = new Base; // { dg-error "no match" }
return 0; return 0;
} }
...@@ -45,6 +44,7 @@ int ...@@ -45,6 +44,7 @@ int
main() main()
{ {
test01(); test01();
return 0; return 0;
} }
// { dg-error "candidates" "" { target *-*-* } 216 }
// { dg-error "std::auto_ptr" "" { target *-*-* } 338 }
// { dg-do compile } // { dg-do compile }
// { dg-excess-errors "" }
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003 Free Software Foundation, Inc.
// //
...@@ -41,3 +40,6 @@ void test01() ...@@ -41,3 +40,6 @@ void test01()
test_base io2; test_base io2;
io1 = io2; io1 = io2;
} }
// { dg-error "within this context" "" { target *-*-* } 41 }
// { dg-error "is private" "" { target *-*-* } 666 }
// { dg-error "operator=" "" { target *-*-* } 0 }
// { dg-do compile } // { dg-do compile }
// { dg-excess-errors "" }
// Copyright (C) 2003 Free Software Foundation, Inc. // Copyright (C) 2003 Free Software Foundation, Inc.
// //
...@@ -32,11 +31,15 @@ ...@@ -32,11 +31,15 @@
// Library defect report // Library defect report
//50. Copy constructor and assignment operator of ios_base //50. Copy constructor and assignment operator of ios_base
class test_base : public std::ios_base { }; struct test_base : public std::ios_base
{ };
void test02() void test02()
{ {
// copy ctor // copy ctor
test_base io1; test_base io1;
test_base io2 = io1; test_base io2 = io1;
} }
// { dg-error "within this context" "" { target *-*-* } 41 }
// { dg-error "is private" "" { target *-*-* } 663 }
// { dg-error "copy constructor" "" { target *-*-* } 0 }
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