Debian Codegraph @

gcc/testsuite/gfortran.dg/graphite/run-id-3.f90

raw
1 ! { dg-do run }
2 ! { dg-skip-if "" { *-*-* } { "-O0" } { "" } }
3 ! { dg-additional-options "-ffrontend-optimize -floop-nest-optimize" }
4 ! PR 56872 - wrong front-end optimization with a single constructor.
5 ! Original bug report by Rich Townsend.
6 integer :: k
7 real :: s
8 integer :: m
9 s = 2.0
10 m = 4
11 res = SUM([(s**(REAL(k-1)/REAL(m-1)),k=1,m)])
12 if (abs(res - 5.84732246) > 1e-6) STOP 1
13 end