diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr28162.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr28162.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr28162.c b/gcc/testsuite/gcc.dg/pr28162.c new file mode 100644 index 000000000..8bd28ad24 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr28162.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ +/* { dg-options "-O3" } */ + +void Lag_max_wght(float corr[], long wght_flg) +{ + float t0, max; + const float *ww; + long i; + if ( wght_flg > 0 ) { + for ( i = 143; i >= 20; i-- ) { + t0 = corr[ - i] * *ww--; + if ( t0 >= max ) + max = t0; + } + } +} + |