[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / namelist_31.f90
blobb7aba98b4b396ac260735001d780e8b9f93af07b
1 ! { dg-do compile }
2 ! One of two tests for the fix of PR23152 - There used to be
3 ! no warning for assumed shape arrays in namelists.
5 ! Conributed by Paul Thomas <pault@gcc.gnu.org>
7 program assumed_shape_nml
8 real, dimension (10) :: z
9 z = 42.0
10 call foo (z)
11 contains
12 subroutine foo (y)
13 real, DIMENSION (:) :: y
14 namelist /mynml/ y
15 write (*, mynml)
16 end subroutine foo
17 end program assumed_shape_nml