hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / int_conv_1.f90
blobdaf0dfd0b783f0d17afcc047de16c4d9af48d361
1 ! { dg-do run }
2 ! { dg-options "-std=gnu" }
3 integer(kind=2) :: i2, k2, l2
4 integer(kind=8) :: i8
5 real :: x
6 complex :: z
8 i2 = huge(i2) / 3
9 i8 = int8(i2)
10 k2 = int2(i2)
11 l2 = int2(i8)
13 if (i8 /= i2 .or. k2 /= i2 .or. l2 /= i2 ) STOP 1
15 x = i2
16 i8 = int8(x)
17 k2 = int2(x)
18 if (i8 /= i2 .or. k2 /= i2) STOP 2
20 z = i2 + (0.,-42.)
21 i8 = int8(z)
22 k2 = int2(z)
23 if (i8 /= i2 .or. k2 /= i2) STOP 3
25 end