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: [testsuite, c++] Use signed char in g++.dg/template/char1.C


On Fri, Jan 21, 2011 at 12:32 PM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> The g++.dg/template/char1.C test FAILs on mips-sgi-irix6.5 on mainline:
>
> FAIL: g++.dg/template/char1.C ?(test for warnings, line 4)
>
> This happens because the test assumes that char is signed, but on IRIX,
> it is unsigned. ?Fixed thus, tested with the appropriate runtest
> invocations on mips-sgi-irix6.5 and i386-pc-solaris2.11.
>
> Ok for mainline, though I suppose this is obvious.

Ok.

Thanks,
Richard.

> Thanks.
> ? ? ? ?Rainer
>
>
> 2011-01-21 ?Rainer Orth ?<ro@CeBiTec.Uni-Bielefeld.DE>
>
> ? ? ? ?* g++.dg/template/char1.C: Use signed char.
>
> Index: gcc/testsuite/g++.dg/template/char1.C
> ===================================================================
> --- gcc/testsuite/g++.dg/template/char1.C ? ? ? (revision 169081)
> +++ gcc/testsuite/g++.dg/template/char1.C ? ? ? (working copy)
> @@ -1,4 +1,4 @@
> ?template <class CharType, CharType line_terminator = 0>
> ?class String {};
>
> -String<char, 255> s; ? ? ? ? ? // { dg-warning "overflow" }
> +String<signed char, 255> s; ? ? ? ? ? ?// { dg-warning "overflow" }
>
> --
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
>


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