OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [data_array_5.f90] - Rev 384

Compare with Previous | Blame | View Log

! { dg-do compile }
! Tests the fix for PR36371, in which the locus for the errors pointed to
! the paramter declaration rather than the data statement.
!
! Contributed by Dominique d'Humieres <dominiq@lps.ens.fr>
!
program chkdata
  character(len=3), parameter :: mychar(3) = [ "abc", "def", "ghi" ]
  integer, parameter :: myint(3) = [1, 2, 3]
  integer :: c(2)
  character(4) :: i(2)
  data c / mychar(1), mychar(3) / ! { dg-error "Incompatible types in DATA" }
  data i / myint(3), myint(2) /   ! { dg-error "Incompatible types in DATA" }
end program chkdata

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.