2 ! { dg-options "-Wall" }
3 ! Code contributed by Manfred Schwarb <manfred99 at gmx dot ch>
6 ! Prior to applying the patch for this PR, the following code
7 ! would generate numerous conversion warnings.
8 ! Additional test case to cover all targets.
19 PARAMETER(a
=3.1415927_4
)
20 PARAMETER(b
=3.1415927_8
)
25 aa
=REAL(b
) ! was: Change of value in conversion from 'REAL(8)' to 'REAL(4)'
29 aa
=REAL(b
, kind
=4) ! was: Change of value in conversion from 'REAL(8)' to 'REAL(4)'
34 aa
=SNGL(b
) ! was: Change of value in conversion from 'REAL(8)' to 'REAL(4)'
49 ee
=INT(a
, kind
=2) ! was: Change of value in conversion from 'REAL(4)' to 'INTEGER(2)'
50 ee
=INT(b
, kind
=2) ! was: Change of value in conversion from 'REAL(8)' to 'INTEGER(2)'
54 ff
=INT(a
, kind
=4) ! was: Change of value in conversion from 'REAL(4)' to 'INTEGER(4)'
55 ff
=INT(b
, kind
=4) ! was: Change of value in conversion from 'REAL(8)' to 'INTEGER(4)'
59 gg
=INT(a
, kind
=8) ! was: Change of value in conversion from 'REAL(4)' to 'INTEGER(8)'
60 gg
=INT(b
, kind
=8) ! was: Change of value in conversion from 'REAL(8)' to 'INTEGER(8)'
70 ee
=INT2(a
) ! was: Change of value in conversion from 'REAL(4)' to 'INTEGER(2)'
71 ee
=INT2(b
) ! was: Change of value in conversion from 'REAL(8)' to 'INTEGER(2)'
74 gg
=INT8(a
) ! was: Change of value in conversion from 'REAL(4)' to 'INTEGER(8)'
75 gg
=INT8(b
) ! was: Change of value in conversion from 'REAL(8)' to 'INTEGER(8)'
87 ff
=MAX1(a
, a
) ! was: Change of value in conversion from 'REAL(4)' to 'INTEGER(4)'
88 ff
=MIN1(a
, a
) ! was: Change of value in conversion from 'REAL(4)' to 'INTEGER(4)'
89 gg
=MAX1(b
, b
) ! was: Change of value in conversion from 'REAL(8)' to 'INTEGER(4)'
90 gg
=MIN1(b
, b
) ! was: Change of value in conversion from 'REAL(8)' to 'INTEGER(4)'
110 ww
=CMPLX(b
, b
, kind
=4)
111 xx
=CMPLX(a
, a
, kind
=8)