* gcc.dg/overload/arg[14].C: Remove expected errors.

From-SVN: r131116
This commit is contained in:
Jason Merrill 2007-12-20 23:09:45 -05:00 committed by Jason Merrill
parent f1090323ba
commit ad35761416
3 changed files with 12 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2007-12-20 Jason Merrill <jason@redhat.com>
* gcc.dg/overload/arg[14].C: Remove expected errors.
2007-12-20 Jakub Jelinek <jakub@redhat.com>
PR c++/34459

View File

@ -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);
}

View File

@ -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);}