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]

Re: New testcases.


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.

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