Fix compilation failure with C++98 compilers
[official-gcc.git] / gcc / testsuite / gfortran.dg / warn_conversion_2.f90
blobd071a3c322f382212c4a2cf88613d64809206953
1 ! { dg-do compile }
2 ! { dg-options "-Wconversion-extra" }
4 real(8) :: sqrt2
5 real x
7 x = 2.0
8 sqrt2 = sqrt(x) ! { dg-warning "Conversion" }
10 sqrt2 = sqrt(2.0) ! { dg-warning "Conversion" }
11 end