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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [compile/] [parameter_2.f90] - Rev 695

Compare with Previous | Blame | View Log

! Program to test initialization expressions involving subobjects
program parameter_2
  implicit none
  type :: SS
     integer :: I
     integer :: J
  end type SS
  type :: TT
    integer :: N
    type (SS), dimension(2) :: o
  end type
  
  type (SS), parameter :: s =  SS (1, 2)
  type (TT), parameter :: t = TT(42, (/ SS(3, 4), SS(8, 9) /))

  integer, parameter :: a(2) = (/5, 10/)
  integer, parameter :: d1 = s%i
  integer, parameter :: d2 = a(2)
  integer, parameter :: d4 = t%o(2)%j

  integer q1, q2, q3, q4
  common /c1/q1(d1), q2(d2), q3(a(1)), q4(d4) ! legal
end

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.