* config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
[official-gcc.git] / gcc / testsuite / gfortran.dg / warn_conversion_3.f90
blob38d701851cc8d29c1a9bdf7b5cd5b93424f15764
1 ! { dg-do compile }
2 ! { dg-options "-Wconversion -Wconversion-extra" }
3 ! PR 47659 - warning about conversions on assignment
4 ! Based on a test case by Thomas Henlich
5 program main
6 double precision d1, d2
7 complex(8), parameter :: z = cmplx (0.5, 0.5) ! { dg-warning "Conversion" }
8 real :: r1, r2
9 r1 = 2.3d0 ! { dg-warning "Change of value in conversion" }
10 r2 = 2.5d0 ! No warning because the value does not change
11 d1 = .13 ! { dg-warning "Conversion" }
12 d2 = .13d0
13 d1 = z ! { dg-warning "change of value in conversion" }
14 end program main