PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / io_constraints_4.f90
blob149d31b163158fc7c0c53e69738b64c05dcf883a
1 ! { dg-do compile }
2 ! PR33268 [patch,fortran] read ('(f3.3)'), a rejected due to the extra (...)
4 write(*,('(a)')) 'Hello'
5 write (*,'(f8.3)'), 3.14 ! { dg-warning "Comma before i/o item list" }
6 print ('(a)'), "valid"
7 read ('(f3.3)'), a
8 read (*, '(f3.3)'), a ! { dg-warning "Comma before i/o item list" }
9 write ('(a)'), "invalid" ! { dg-error "Invalid form of WRITE statement" }
10 end