summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/friend4.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.eh/catch1.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.eh/spec6.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/p7868.C4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/crash38.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/enum2.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/incomplete.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/vaarg3.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/crash9.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/typename8.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C2
14 files changed, 15 insertions, 15 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C b/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C
index 4d436e5c9c6..dc55280751d 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C
@@ -2,5 +2,5 @@
// GROUPS passed friends
// do_friend should complain that foo was declared as a friend of
// A before A was defined
-struct A; // { dg-error "forward" }
+struct A; // { dg-message "forward" }
struct B { friend A::foo (); };// { dg-error "" } .*
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C
index 32591635824..da619b88337 100644
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C
+++ b/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C
@@ -7,7 +7,7 @@
// keywords: abort, incomplete types, reference types, formal parameters
-struct s0; // { dg-error "" } forward declaration
+struct s0; // { dg-message "" } forward declaration
void function (struct s0 &arg1, struct s0 &arg2)
{
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C
index 88cafbfc181..4b161bf89c0 100644
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C
+++ b/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C
@@ -8,7 +8,7 @@
// keywords: friends, incomplete types, function members
-struct A; // { dg-error "" } forward declaration
+struct A; // { dg-message "" } forward declaration
struct B {
friend void A::foo(); // { dg-error "" } type A is incomplete
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/catch1.C b/gcc/testsuite/g++.old-deja/g++.eh/catch1.C
index 7aa70ac97b3..67779d945ea 100644
--- a/gcc/testsuite/g++.old-deja/g++.eh/catch1.C
+++ b/gcc/testsuite/g++.old-deja/g++.eh/catch1.C
@@ -5,7 +5,7 @@
// We cannot catch an incomplete type, or ptr to one
-struct A; // { dg-error "" } forward decl
+struct A; // { dg-message "" } forward decl
void fn()
{
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/spec6.C b/gcc/testsuite/g++.old-deja/g++.eh/spec6.C
index 7780c4a9daf..85e9b4e7c4e 100644
--- a/gcc/testsuite/g++.old-deja/g++.eh/spec6.C
+++ b/gcc/testsuite/g++.old-deja/g++.eh/spec6.C
@@ -7,7 +7,7 @@
// [except.spec] 1, a type in an exception specifier shall not be incomplete,
// or pointer or ref to incomplete
-struct X; // { dg-error "" } forward declaration.*
+struct X; // { dg-message "" } forward declaration.*
void fn1() throw(X); // { dg-error "" } invalid use of undefined type
void fn2() throw(X *); // { dg-error "" } invalid use of undefined type
void fn3() throw(X &); // { dg-error "" } invalid use of undefined tyoe
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p7868.C b/gcc/testsuite/g++.old-deja/g++.mike/p7868.C
index 48bdf8b2500..8a94b3ecb1a 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/p7868.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/p7868.C
@@ -4,13 +4,13 @@
struct DIAGTYP {
};
struct DIAGTYP1 {
- struct DIAGTYP; // { dg-error "" } forward declaration
+ struct DIAGTYP; // { dg-message "" } forward declaration
void bar() { new struct DIAGTYP; } // { dg-error "" } undefined
void foo() { new struct DIAGTYP1; }
};
int main () {
- struct DIAGTYP; // { dg-error "" } forward declaration
+ struct DIAGTYP; // { dg-message "" } forward declaration
struct DIAGTYP *lerror_desc;
lerror_desc= new struct DIAGTYP; // { dg-error "" } undefined
}
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash38.C b/gcc/testsuite/g++.old-deja/g++.other/crash38.C
index d07115e51ca..87e55556128 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/crash38.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/crash38.C
@@ -6,7 +6,7 @@
// Bug 611. We ICEd when calling a member function returning an incomplete
// type by value.
-struct X; // { dg-error "" } forward ref
+struct X; // { dg-message "" } forward ref
struct Y
{
diff --git a/gcc/testsuite/g++.old-deja/g++.other/enum2.C b/gcc/testsuite/g++.old-deja/g++.other/enum2.C
index 40328bfc6b9..7fc269d9de0 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/enum2.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/enum2.C
@@ -5,7 +5,7 @@
// We'd like the enum location to be its identifier.
-enum thing // { dg-error "" } previous def
+enum thing // { dg-message "" } previous def
{
val1
};
diff --git a/gcc/testsuite/g++.old-deja/g++.other/incomplete.C b/gcc/testsuite/g++.old-deja/g++.other/incomplete.C
index a00ea1c7d2e..7f0bc9409e8 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/incomplete.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/incomplete.C
@@ -4,7 +4,7 @@
// a void parm. We need to distinguish between a parmlist of (void), and
// some ill-formed ones.
-struct S; // { dg-error "" } forward ref
+struct S; // { dg-message "" } forward ref
void f(S); // ok
void f(S s) {} // { dg-error "" } incomplete type
diff --git a/gcc/testsuite/g++.old-deja/g++.other/vaarg3.C b/gcc/testsuite/g++.old-deja/g++.other/vaarg3.C
index 3408a181188..134a89c97f6 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/vaarg3.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/vaarg3.C
@@ -10,7 +10,7 @@
struct X {int m;};
struct Y { Y(const Y&); };
-struct Z; // { dg-error "forward decl" }
+struct Z; // { dg-message "forward decl" }
void fn1(va_list args)
{
int i = va_arg (args, int);
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash9.C b/gcc/testsuite/g++.old-deja/g++.pt/crash9.C
index aecbd60d970..f54d6387c29 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/crash9.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/crash9.C
@@ -3,7 +3,7 @@
template <class T>
void f(T) {} // { dg-message "initializing" }
-class C; // { dg-error "forward declaration" }
+class C; // { dg-message "forward declaration" }
void g(const C& c)
{
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C b/gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C
index 84765142fe3..3130d32cadb 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/niklas01a.C
@@ -1,7 +1,7 @@
// { dg-do assemble }
// { dg-options "-fshow-column" }
-struct A { // { dg-error "" } forward declaration
+struct A { // { dg-message "" } forward declaration
friend struct B : A { // { dg-error "invalid use of incomplete type 'struct A" "invalid" }
int x;
}; // { dg-error "class definition may not be declared a friend" "may not" { target *-*-* } { 5 } }
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename8.C b/gcc/testsuite/g++.old-deja/g++.pt/typename8.C
index 4861cf301ed..581d6ce764d 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/typename8.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/typename8.C
@@ -17,7 +17,7 @@ public:
}
};
-class B : public A< B > // { dg-error "" } forward declaration
+class B : public A< B > // { dg-message "" } forward declaration
{
public:
typedef int myT;
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C b/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C
index 41fed6ff502..cecf0aac50f 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C
@@ -4,6 +4,6 @@
struct A {};
void f()
{
- struct A; // { dg-error "" } forward ref
+ struct A; // { dg-message "" } forward ref
throw *(new A); // { dg-error "" } invalid use of undefined type
}