This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: New testcases.
- To: Bernd Schmidt <bernds at pathia dot cygnus dot co dot uk>,gcc-patches at gcc dot gnu dot org
- Subject: Re: New testcases.
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Thu, 6 Jan 2000 16:58:18 +0100
- References: <Pine.LNX.4.04.9912021232580.25501-100000@pathia.cygnus.co.uk>
Am Don, 02 Dez 1999 schrieb Bernd Schmidt:
>unsigned int f (unsigned int a)
>{
> return a * 65536 / 8;
>}
>
>unsigned int g (unsigned int a)
>{
> return a * 65536;
>}
>
>unsigned int h (unsigned int a)
>{
> return a / 8;
>}
>
>int main ()
>{
> if (f (65536) != h (g (65536)))
> abort ();
> exit (0);
>}
I think this testcase is bogus (at least on sizeof int == 4 platforms). Maybe
you wanted to write g (h (65536))? Or only test -finline?
Franz.