[PATCH] PR c++/13101
Dodji Seketeli
dseketel@redhat.com
Thu Jul 3 23:57:00 GMT 2008
Manuel López-Ibáñez a écrit :
> 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.
Right. Fixed, regtested on x86_64 and re-sent in attachment to this email.
Cheers,
Dodji.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-pr13101-patch.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080703/d561105b/attachment.txt>
More information about the Gcc-patches
mailing list