This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR c++/13101


2008/7/3 Dodji Seketeli <dseketel@redhat.com>:
> +++ b/gcc/testsuite/g++.dg/parse/func-ptr-decl.C
> @@ -0,0 +1,7 @@
> +// Contributed by Dodji Seketeli <dseketel@redhat.com>
> +// Origin: PR C++/13101
> +// { dg-do compile }
> +
> +extern void(*ptr0)() = 0; // { dg-error "warning: 'ptr0' initialized and
> declared 'extern'" }

I think you should use { dg-warning "warning:" } here.

Cheers,

Manuel.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]