OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [data_array_5.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR36371, in which the locus for the errors pointed to
3
! the paramter declaration rather than the data statement.
4
!
5
! Contributed by Dominique d'Humieres 
6
!
7
program chkdata
8
  character(len=3), parameter :: mychar(3) = [ "abc", "def", "ghi" ]
9
  integer, parameter :: myint(3) = [1, 2, 3]
10
  integer :: c(2)
11
  character(4) :: i(2)
12
  data c / mychar(1), mychar(3) / ! { dg-error "Incompatible types in DATA" }
13
  data i / myint(3), myint(2) /   ! { dg-error "Incompatible types in DATA" }
14
end program chkdata

powered by: WebSVN 2.1.0

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