diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/namelist_blockdata.f')
-rw-r--r-- | gcc/testsuite/gfortran.dg/namelist_blockdata.f | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/namelist_blockdata.f b/gcc/testsuite/gfortran.dg/namelist_blockdata.f new file mode 100644 index 000000000..c1a7a5b4e --- /dev/null +++ b/gcc/testsuite/gfortran.dg/namelist_blockdata.f @@ -0,0 +1,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 |