summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash9.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/crash9.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/crash9.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash9.C b/gcc/testsuite/g++.old-deja/g++.pt/crash9.C
index 20bd7584fdd..f2d811dda1a 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" }
}