2 ! { dg-options -std=f2003 }
3 ! Check that we don't allow IO of NAMELISTs with types with allocatable
4 ! components (PR 20541)
8 integer, allocatable
:: x(:)
17 namelist /blah
/ a
! This is allowed under F2003, but not F95
18 ! The following require User Defined Derived Type I/O procedures.
19 write (*, *) a
! { dg-error "cannot have ALLOCATABLE components" }
21 read (*, *) b
! { dg-error "cannot have ALLOCATABLE components" }