* gcc.dg/20001228-1.c: New test.

From-SVN: r38518
This commit is contained in:
Geoffrey Keating 2000-12-28 23:56:49 +00:00 committed by Geoffrey Keating
parent bc5137ae0f
commit f33f0c3a01
2 changed files with 18 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2000-12-28 Geoffrey Keating <geoffk@redhat.com>
* gcc.dg/20001228-1.c: New test.
* gcc.c-torture/execute/20001228-1.c: New test.
2000-12-28 Joseph S. Myers <jsm28@cam.ac.uk>

View File

@ -0,0 +1,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;
}