summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20001228-1.c
blob: 49aec961748f24b6a75c0cf3a6ab26b1acbfe751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-ffast-math -O2" } */

typedef struct
{
  float vs_data[75], vs_peak[75], vs_peak_speed[75];
  int vs_refresh_delay;
  int vs_doublesize;
} Vis;
 
void vis_timeout_func(Vis * vis)
{
  if (vis->vs_peak[0] < 0.0)
    vis->vs_peak[0] = 0.0;
}