8sa1-gcc/gcc/testsuite/gcc.dg/980526-1.c
Jeffrey A Law 5ccdc8af54 980523-1.c: Only test on ppc-linux.
* gcc.dg/980523-1.c: Only test on ppc-linux.
        * gcc.dg/980526-1.c, gcc.dg/switch-1.c: Likewise.

From-SVN: r20322
1998-06-07 19:20:35 -06:00

18 lines
462 B
C

/* { dg-do compile { target rs6000-*-linux* powerpc-*-linux* } } */
/* { dg-options "-O2 -fpic" } */
int
test(void)
{
double value, maxValue = - (__extension__ ((union { unsigned __l __attribute__((__mode__(__DI__))); double __d; }) { __l: 0x7ff0000000000000ULL }).__d) ;
int idx, maxIdx = 1;
for (idx = 1; idx < 22; idx++) {
if (value > maxValue) {
maxValue = value;
maxIdx = idx;
}
}
return 0 ;
}