URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [blockdata_4.f90] - Rev 399
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
! { dg-options "-std=gnu" }
! 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
Go to most recent revision | Compare with Previous | Blame | View Log