[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / whole_file_17.f90
blobd0e07dddb0dd912f7e988d2d15e0555272fe7ab0
1 ! { dg-do compile }
2 ! { dg-options "-pedantic" }
4 ! PR fortran/30668
7 integer(8) function two()
8 two = 2
9 end function two
11 CHARACTER(len=8) function string()
12 string = "gfortran"
13 end function string
16 program xx
17 INTEGER :: a
18 CHARACTER(len=4) :: s, string ! { dg-error "Character length mismatch" }
20 a = two() ! { dg-error "Return type mismatch" }
21 s = string()
22 end program xx