diff options
author | Jason Merrill <jason@redhat.com> | 2010-06-15 17:45:49 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-06-15 17:45:49 -0400 |
commit | 1f8a2544e38066eb254667208342689661889c77 (patch) | |
tree | 2e15143d390599bb69c7cefc432815f9aeca6ea3 /gcc | |
parent | f582a3aa6b6954d44bd216e756763ada3afa5d1e (diff) | |
download | gcc-1f8a2544e38066eb254667208342689661889c77.zip gcc-1f8a2544e38066eb254667208342689661889c77.tar.gz gcc-1f8a2544e38066eb254667208342689661889c77.tar.bz2 |
arg3.C: Adjust error locations.
* g++.dg/overload/arg3.C: Adjust error locations.
* g++.dg/overload/copy1.C: Likewise.
* g++.dg/tc1/dr152.C: Likewise.
* g++.dg/template/incomplete4.C: Likewise.
* g++.dg/template/incomplete5.C: Likewise.
* g++.old-deja/g++.bob/inherit2.C: Likewise.
* g++.old-deja/g++.pt/auto_ptr.C: Likewise.
* g++.old-deja/g++.pt/crash9.C: Likewise.
From-SVN: r160814
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/overload/arg3.C | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/overload/copy1.C | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/tc1/dr152.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/incomplete4.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/incomplete5.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/warn/incomplete2.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.bob/inherit2.C | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/auto_ptr.C | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash9.C | 4 |
10 files changed, 24 insertions, 21 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 369f3b5..0263635 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,14 @@ 2010-06-15 Jason Merrill <jason@redhat.com> + * g++.dg/overload/arg3.C: Adjust error locations. + * g++.dg/overload/copy1.C: Likewise. + * g++.dg/tc1/dr152.C: Likewise. + * g++.dg/template/incomplete4.C: Likewise. + * g++.dg/template/incomplete5.C: Likewise. + * g++.old-deja/g++.bob/inherit2.C: Likewise. + * g++.old-deja/g++.pt/auto_ptr.C: Likewise. + * g++.old-deja/g++.pt/crash9.C: Likewise. + * g++.dg/inherit/virtual5.C: New. * g++.dg/cpp0x/defaulted18.C: New. diff --git a/gcc/testsuite/g++.dg/overload/arg3.C b/gcc/testsuite/g++.dg/overload/arg3.C index 8ece6a6..eb652717 100644 --- a/gcc/testsuite/g++.dg/overload/arg3.C +++ b/gcc/testsuite/g++.dg/overload/arg3.C @@ -14,10 +14,9 @@ struct B : A B(B&); // { dg-message "candidates" "" } }; -void foo(B); +void foo(B); // { dg-error "initializing" } void bar() { foo(0); // { dg-error "no matching function" "no matching" } - // { dg-error "initializing" "initializing" { target *-*-* } 21 } } diff --git a/gcc/testsuite/g++.dg/overload/copy1.C b/gcc/testsuite/g++.dg/overload/copy1.C index 6a774c6..2bd8e53 100644 --- a/gcc/testsuite/g++.dg/overload/copy1.C +++ b/gcc/testsuite/g++.dg/overload/copy1.C @@ -10,12 +10,11 @@ struct B struct A { - A (B); + A (B); // { dg-error "initializing" } }; B f (B const& b) { return b; // { dg-error "matching" "matching" } - // { dg-error "initializing" "initializing" { target *-*-* } 19 } } diff --git a/gcc/testsuite/g++.dg/tc1/dr152.C b/gcc/testsuite/g++.dg/tc1/dr152.C index cac7aac..fdf4f12 100644 --- a/gcc/testsuite/g++.dg/tc1/dr152.C +++ b/gcc/testsuite/g++.dg/tc1/dr152.C @@ -7,12 +7,11 @@ namespace N1 { X(); // { dg-message "candidate" } explicit X(const X&); }; - void f(X); + void f(X); // { dg-error "initializing" } int foo() { X x; f(x); // { dg-error "matching" "matching" } - // { dg-error "initializing" "initializing" { target *-*-* } 14 } } } @@ -24,14 +23,13 @@ namespace N2 { }; template <class T> - void f(T ) {} + void f(T ) {} // { dg-error "initializing" } template <class T> int foo() { X<T> x; N2::f(x); // { dg-error "matching" "matching" } - // { dg-error "initializing " initializing" { target *-*-* } 33 } } template int foo<float>(); // { dg-message "instantiated from here" } diff --git a/gcc/testsuite/g++.dg/template/incomplete4.C b/gcc/testsuite/g++.dg/template/incomplete4.C index 6129e0d..f2832a7 100644 --- a/gcc/testsuite/g++.dg/template/incomplete4.C +++ b/gcc/testsuite/g++.dg/template/incomplete4.C @@ -5,12 +5,12 @@ class A; // { dg-error "forward declaration" } template <typename T> struct X { - static int f (T); + static int f (T); // { dg-error "initializing" } static const T &make (); }; int main () { - return X<A>::f (X<A>::make ()); // { dg-error "invalid use of incomplete type|initializing argument" } + return X<A>::f (X<A>::make ()); // { dg-error "invalid use of incomplete type" } } diff --git a/gcc/testsuite/g++.dg/template/incomplete5.C b/gcc/testsuite/g++.dg/template/incomplete5.C index 9641003..f780282 100644 --- a/gcc/testsuite/g++.dg/template/incomplete5.C +++ b/gcc/testsuite/g++.dg/template/incomplete5.C @@ -5,9 +5,9 @@ class A; // { dg-error "forward declaration" } template <typename T> struct X { - static int f (T); + static int f (T); // { dg-error "initializing" } static const T &make (); - static const bool value = sizeof (f (make ())) == sizeof (int); // { dg-error "invalid use of incomplete type|initializing argument" } + static const bool value = sizeof (f (make ())) == sizeof (int); // { dg-error "invalid use of incomplete type" } }; int diff --git a/gcc/testsuite/g++.dg/warn/incomplete2.C b/gcc/testsuite/g++.dg/warn/incomplete2.C index 9fdfcba..30be267 100644 --- a/gcc/testsuite/g++.dg/warn/incomplete2.C +++ b/gcc/testsuite/g++.dg/warn/incomplete2.C @@ -3,11 +3,11 @@ class A; // { dg-error "forward declaration" } -int f (A); +int f (A); // { dg-error "initializing" } const A &make (); int main () { - return f (make ()); // { dg-error "invalid use of incomplete type|initializing argument" } + return f (make ()); // { dg-error "invalid use of incomplete type" } } diff --git a/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C b/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C index 14bc32b..c0a821b 100644 --- a/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C +++ b/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C @@ -15,11 +15,10 @@ public: B(void) {} }; -void f(B b) { +void f(B b) { // { dg-error "initializing" } } void g() { B h; - f(h); // { dg-error "argument" "arg" } - // { dg-message "synthesized" "synth" { target *-*-* } 23 } + f(h); // { dg-message "synthesized" "synth" } } diff --git a/gcc/testsuite/g++.old-deja/g++.pt/auto_ptr.C b/gcc/testsuite/g++.old-deja/g++.pt/auto_ptr.C index 37af9ca..3a587d8 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/auto_ptr.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/auto_ptr.C @@ -44,7 +44,7 @@ struct Derived : Base { Derived() {} }; auto_ptr<Derived> f() { auto_ptr<Derived> null(0); return null; } void g(auto_ptr<Derived>) { } -void h(auto_ptr<Base>) { } +void h(auto_ptr<Base>) { } // { dg-error "initializing" } int main() { auto_ptr<Base> x(f()); @@ -52,5 +52,4 @@ int main() { x = y; g(f()); h(f()); // { dg-error "match" "match" } no usable copy ctor -// { dg-error "initializing" "init" { target *-*-* } 54 } } diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash9.C b/gcc/testsuite/g++.old-deja/g++.pt/crash9.C index 20bd758..f2d811d 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/crash9.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash9.C @@ -1,11 +1,11 @@ // { dg-do assemble } template <class T> -void f(T) {} +void f(T) {} // { dg-error "initializing" } class C; // { dg-error "forward declaration" } void g(const C& c) { - f(c); // { dg-error "invalid use of incomplete type|initializing argument" } + f(c); // { dg-error "invalid use of incomplete type" } } |