nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / write_check5.f90
blob296c51a1962de2f4371cfc3d478e15c035a815d8
1 ! { dg-do compile }
3 ! The asynchronous specifier for a data transfer statement shall be
4 ! an initialization expression
7 module write_check5
8 contains
10 function no()
11 implicit none
12 character(3) :: no
13 no = "yes"
14 endfunction
16 end module
18 use write_check5
19 implicit none
21 open (unit=10, asynchronous=no()) ! Ok, it isn't a transfer stmt
22 write(*,*, asynchronous=no()) ! { dg-error "must be an intrinsic function" }
23 read (*,*, asynchronous=no()) ! { dg-error "must be an intrinsic function" }
24 end