2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / reassoc_11.f
blob242201680b3b1d587a4515c8c06aa109ddd41a5a
1 ! { dg-do compile }
2 ! { dg-options "-O3 -ffast-math" }
4 ! This tests only for compile-time failure, which formerly occurred
5 ! when a __builtin_powi was introduced by reassociation in a bad place.
7 SUBROUTINE GRDURBAN(URBWSTR, ZIURB, GRIDHT)
9 IMPLICIT NONE
10 INTEGER :: I
11 REAL :: SW2, URBWSTR, ZIURB, GRIDHT(87)
13 SAVE
15 SW2 = 1.6*(GRIDHT(I)/ZIURB)**0.667*URBWSTR**2
17 END