summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/namelist_blockdata.f
blob: c1a7a5b4e9bfc1c77d4913b72b78d0dbd6922ec5 (plain)
1
2
3
4
5
6
7
! { dg-do compile }
! Tests fix for PR21565 - object cannot be in namelist and block data.
      block data
      common /foo/ a
      namelist /foo_n/ a ! { dg-error "not allowed in BLOCK DATA" }
      data a /1.0/
      end