Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / gfortran.dg / warn_conversion_2.f90
blobc0222983a0fb6932ffdeb1b1674d129c7cb7565f
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) ! no warning; simplified to a constant and range checked
11 end