[PATCH] Fix g++.dg/parse/parameter-declaration-1.C test

Jakub Jelinek jakub@redhat.com
Mon Dec 9 15:26:00 GMT 2002


Hi!

Both gcc 3.2.x and trunk issue the error on the
last line of input, ie.
testsuite/g++.dg/parse/parameter-declaration-1.C:7: type specifier omitted for parameter `a()'
testsuite/g++.dg/parse/parameter-declaration-1.C:7: parse error at end of input
and not on line 6.
Is this what you meant?

2002-12-10  Jakub Jelinek  <jakub@redhat.com>

	* g++.dg/parse/parameter-declaration-1.C: Expect error on last line.

--- gcc/testsuite/g++.dg/parse/parameter-declaration-1.C.jj	2002-12-08 21:43:51.000000000 +0100
+++ gcc/testsuite/g++.dg/parse/parameter-declaration-1.C	2002-12-09 14:04:07.000000000 +0100
@@ -3,4 +3,4 @@
 // { dg-do compile }
 
 struct {
-   a(void = 0; a(0), a(0)                 // { dg-error "" }
+   a(void = 0; a(0), a(0)	// { dg-error "" "" { target *-*-* } 7 }

	Jakub



More information about the Gcc-patches mailing list