PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / io_constraints_9.f90
blob9d8df88efc2d9bfa150778fe0f624622e1e67d97
1 ! { dg-do compile }
3 ! PR fortran/48972
5 ! All string arguments to I/O statements shall
6 ! be of default-character type. (Except for the
7 ! internal unit.)
9 character(len=20, kind=4) :: str1
11 write(99, str1) 'a' ! { dg-error "must be of type default-kind CHARACTER" }
12 read(99, fmt=str1) ! { dg-error "must be of type default-kind CHARACTER" }
13 end