2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / 980526-1.c
blob08ef6e285a13c2644bc2bda4a338a3fe7acb7ca0
1 /* { dg-do compile { target rs6000-*-linux* powerpc-*-linux* } } */
2 /* { dg-options "-O2 -fpic" } */
4 int
5 test(void)
7 double value, maxValue = - (__extension__ ((union { unsigned __l __attribute__((__mode__(__DI__))); double __d; }) { __l: 0x7ff0000000000000ULL }).__d) ;
8 int idx, maxIdx = 1;
10 for (idx = 1; idx < 22; idx++) {
11 if (value > maxValue) {
12 maxValue = value;
13 maxIdx = idx;
16 return 0 ;