> To all PPC Linux users:
> Perhaps it's just me but the following program reports `FAIL', for no
> apparent reason. Before I start accusing the compiler or the hardware
> of being buggy(!), I would like to know whether other PPC Linux users
> get a similar report...
> I would be grateful if people will try it out. If/When replying, give
> machine and compiler specs also, please, e.g.:
> Machine: Apple iBook SE (G3)
> Compiler: gcc version 2.95.2 19991024 (release)
> Report: FAIL
> Francis J Franklin
> ---------------------------------------------------------------------
> #include <stdio.h>
> int test4bug (size_t one, size_t two,size_t three,size_t four,
> size_t five,size_t six,size_t seven,
> double* ptr_1,size_t size_1,
> double extraneous,
> double* ptr_2,size_t size_2)
> { int status = 0;
> /* fputs ("test4bug: ",stdout);
> fprintf (stdout,"%p ?= %p, ",ptr_1, ptr_2);
> fprintf (stdout,"%u ?= %u: ",size_1,size_2);
> */
> if (ptr_1 != ptr_2) status++;
> if (size_1 != size_2) status++;
> if (status) fputs ("FAIL\n",stdout);
> else fputs ("PASS\n",stdout);
> return (status);
> }
> int main ()
> { double ptr[] = {0,1,2,3,4,5,6,7,8,9};
> size_t size = sizeof ptr;
> return (test4bug (1,2,3,4,5,6,7,ptr,size,0.0,ptr,size));
> }
(using the YDL gcc-2.95.2-1i rpm), I get a pass.
--
Materials Engineering Laboratory,
Mechanical Engineering Department,
University of Oulu
PO Box 4200
Oulun Yliopisto 90014 FINLAND