aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/io_constraints_9.f90
blob: 9d8df88efc2d9bfa150778fe0f624622e1e67d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
!
! PR fortran/48972
!
! All string arguments to I/O statements shall
! be of default-character type. (Except for the
! internal unit.)
!
character(len=20, kind=4) :: str1

write(99, str1) 'a'  ! { dg-error "must be of type default-kind CHARACTER" }
read(99, fmt=str1)   ! { dg-error "must be of type default-kind CHARACTER" }
end