From ad35761416c0d95f716c22f35cdfc536b4abfbbd Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 20 Dec 2007 23:09:45 -0500 Subject: [PATCH] * gcc.dg/overload/arg[14].C: Remove expected errors. From-SVN: r131116 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/overload/arg1.C | 9 ++++----- gcc/testsuite/g++.dg/overload/arg4.C | 10 ++++------ 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e9364ec22b2..c7060c417bc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-12-20 Jason Merrill + + * gcc.dg/overload/arg[14].C: Remove expected errors. + 2007-12-20 Jakub Jelinek PR c++/34459 diff --git a/gcc/testsuite/g++.dg/overload/arg1.C b/gcc/testsuite/g++.dg/overload/arg1.C index ba0f6f0781e..c765a9902cf 100644 --- a/gcc/testsuite/g++.dg/overload/arg1.C +++ b/gcc/testsuite/g++.dg/overload/arg1.C @@ -1,4 +1,3 @@ -// { dg-options "-std=c++98" } // { dg-do compile } // Copyright (C) 2004 Free Software Foundation, Inc. @@ -11,14 +10,14 @@ struct A {}; struct B : A { - B(int); // { dg-error "" "" } - B(B &); // { dg-error "" "" } - B(A); // { dg-error "" "" } + B(int); + B(B &); + B(A); }; void foo(B); void bar() { - foo(0); // { dg-error "no matching function|initializing" "" } + foo(0); } diff --git a/gcc/testsuite/g++.dg/overload/arg4.C b/gcc/testsuite/g++.dg/overload/arg4.C index 1461928958f..13e4bad6345 100644 --- a/gcc/testsuite/g++.dg/overload/arg4.C +++ b/gcc/testsuite/g++.dg/overload/arg4.C @@ -1,4 +1,3 @@ -// { dg-options "-std=c++98" } // { dg-do compile } // Copyright (C) 2004 Free Software Foundation, Inc. @@ -11,9 +10,9 @@ struct A {}; struct B : A { - B(int); // { dg-error "" "" } - B(B&); // { dg-error "" "" } - B(A); // { dg-error "" "" } + B(int); + B(B&); + B(A); }; struct C @@ -27,5 +26,4 @@ void foo(B); void bar() { C c; - foo(c); // { dg-error "no matching function|initializing" "" } -} + foo(c);}