OSDN Git Service

2010-05-02 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / torture / pr39241.c
1 /* { dg-do compile } */
2 /* { dg-options "-w" } */
3
4 static inline int
5 foo (float f)
6 {
7   return *((int *) &f) - 1;
8 }
9
10 float
11 bar (float x, float y, float *z)
12 {
13   float c = y < 0.002f ? 0.002f : y;
14   float d = x < c ? c : x;
15   return z[foo (c)] + z[foo (d * 255.0f)];
16 }