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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR fortran/32867 - nested initialization expression not simplified
4
!
5
! Testcase contributed by H. J. Lu 
6
!
7
 
8
MODULE Readdata_mod
9
IMPLICIT NONE
10
Private
11
Public Parser
12
  integer, parameter :: nkeywords = 2
13
character(80), PARAMETER, dimension(1:nkeywords) :: keywords = &
14
(/'PROBLEMSIZE                                  ',             &
15
  'NFTRANS_TD                                   '/)
16
 
17
CONTAINS
18
SUBROUTINE Parser(nx, ny, keyword)
19
integer, intent(inout) :: nx, ny
20
character(80), intent(inout) :: keyword
21
 
22
select case (keyword)
23
  case (trim(keywords(1))) ! PROBLEMSIZE
24
    nx = 1
25
  case (trim(keywords(2))) !'NFTRANS_TD'
26
    ny = 1
27
end select
28
 
29
END SUBROUTINE Parser
30
END MODULE Readdata_mod
31
 
32
! { dg-final { cleanup-modules "readdata_mod" } }

powered by: WebSVN 2.1.0

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