1! { dg-do compile }
2! { dg-options "-std=gnu" }
3!
4real :: a(4), b(4)
5real :: c
6integer :: istat, j
7character(25) :: msg
8
9open(10, file='mydata_f2003_io_8', asynchronous="yes", blank="null")
10write(10,'(10f8.3)', asynchronous='no', decimal="comma", id=j) a ! { dg-error "must be with ASYNCHRONOUS=" }
11read(10,'(10f8.3)', id=j, decimal="comma", blank="zero") b ! { dg-error "must be with ASYNCHRONOUS=" }
12read(10,'(10f8.3)', asynchronous=msg, decimal="comma", blank="zero") b ! { dg-error "must be an initialization expression" }
13end
14