summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/namelist_print_1.f
blob: abc8aec6cdc246977ad59c7ce6e7348e01416bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! Test Non standard PRINT namelist - PR21432
!
! Contributor Paul Thomas  <pault@gcc.gnu.org>
!
! { dg-do run }
! { dg-options "-std=gnu" }

      real  x
      namelist /mynml/ x
      x = 1
! ( dg-output "^" }
      print mynml ! { dg-output "&MYNML(\n|\r\n|\r) X=  1.0000000    ,(\n|\r\n|\r) /(\n|\r\n|\r)" }
      end