hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / io_constraints_14.f90
blobe5b62b1f70d957576df8c7b367dab1cd1e9cdc27
1 ! { dg-do compile }
2 program pr89782
3 character(len=*),parameter :: VALUES(*)=[character(len=10) :: 'NaN','NAN','nan','Inf','INF','inf','Infinity']
4 character(len=*),parameter :: VALUE='NaN'
5 real(4) :: var
6 do i=1,size(VALUES)
7 read(VALUES(i),*) float ! { dg-error "character PARAMETER" }
8 write(VALUES(i),*)float ! { dg-error "character PARAMETER" }
9 enddo
10 read(var,*)float ! { dg-error "INTEGER expression or a CHARACTER" }
11 read(VALUE,*)float ! { dg-error "character PARAMETER" }
12 write(VALUE,*)float ! { dg-error "character PARAMETER" }
13 end program pr89782