On Wed, Feb 19, 2014 at 07:43:56PM +0530, Prathamesh Kulkarni wrote:
> Index: gcc/testsuite/gcc.dg/decl-9.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/decl-9.c (revision 207700)
> +++ gcc/testsuite/gcc.dg/decl-9.c (working copy)
> @@ -30,3 +30,14 @@ void *f3()
>    return x; /* { dg-bogus "'x' undeclared" } */
>  }
> 
> +void
> +f4(const foo x) /* { dg-error "unknown type name 'foo'" } */
> +{}
> +
> +void
> +f5(int i; foo x, int i) /* { dg-error "unknown type name 'foo'" } */
> +{}
> +
> +void
> +f6(char c, foo x, ...) /* { dg-error "unknown type name 'foo'" } */
> +{}

I'd omit the 'foo' in dg-error and please create a new testcase for this,
don't reuse decl-9.c.

Otherwise looks good (can't approve though), thanks.

        Marek

Reply via email to