]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/gcc.dg/980526-1.c
980523-1.c: Only test on ppc-linux.
[gcc.git] / gcc / testsuite / gcc.dg / 980526-1.c
CommitLineData
5ccdc8af 1/* { dg-do compile { target rs6000-*-linux* powerpc-*-linux* } } */
f5e23e0d
FS
2/* { dg-options "-O2 -fpic" } */
3
4int
5test(void)
6{
7 double value, maxValue = - (__extension__ ((union { unsigned __l __attribute__((__mode__(__DI__))); double __d; }) { __l: 0x7ff0000000000000ULL }).__d) ;
8 int idx, maxIdx = 1;
9
10 for (idx = 1; idx < 22; idx++) {
11 if (value > maxValue) {
12 maxValue = value;
13 maxIdx = idx;
14 }
15 }
16 return 0 ;
17}
This page took 0.046126 seconds and 5 git commands to generate.