diff options
author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-25 22:14:57 +0000 |
---|---|---|
committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-25 22:14:57 +0000 |
commit | a53c7778d31ae197726f39647d0f5bedd7d2f681 (patch) | |
tree | a19d7ac959dc9ca98e021dda12ead211352309ad /gcc/testsuite | |
parent | a7e5a90a8071f4d088678d06ac96a71da78cc642 (diff) | |
download | gcc-a53c7778d31ae197726f39647d0f5bedd7d2f681.tar.gz |
2007-11-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/33152
*gfortran.dg\blockdata_4.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130416 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/blockdata_4.f90 | 24 |
2 files changed, 29 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index df55de85047..e5a81933ef2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-11-25 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR fortran/33152 + *gfortran.dg\blockdata_4.f90: New test. + 2007-11-25 Tobias Burnus <burnus@net-b.de> PR fortran/34079 diff --git a/gcc/testsuite/gfortran.dg/blockdata_4.f90 b/gcc/testsuite/gfortran.dg/blockdata_4.f90 new file mode 100644 index 00000000000..18836bcacd0 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/blockdata_4.f90 @@ -0,0 +1,24 @@ +! { dg-do compile } +! PR33152 Initialization/declaration problems in block data +! Test case prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org> +blockdata bab + character(len=3) :: myname(2)=(/'bar','baz'/) + common/nmstr/myname +end blockdata bab + +blockdata thdinit + implicit none + integer, parameter :: nmin=2 + common/onestr/emname + character(len=3) :: emname(nmin) = (/'bar','baz'/) +end blockdata thdinit + +blockdata fooinit + implicit none + integer, parameter :: nmin=2 + common/twostr/aname + data aname/'bar','baz'/ ! { dg-error "DATA array" } + character(len=3) :: aname(nmin) +end blockdata fooinit + +end |