[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / initialization_10.f90
blobb99c8ff0c6ab11df61c96e0ea3b9bffdbcf99bb9
1 ! { dg-do compile }
2 ! { dg-require-visibility "" }
4 ! PR fortran/32867 - nested initialization expression not simplified
6 ! Testcase contributed by H. J. Lu <hjl AT lucon DOT org>
9 MODULE Readdata_mod
10 IMPLICIT NONE
11 Private
12 Public Parser
13 integer, parameter :: nkeywords = 2
14 character(80), PARAMETER, dimension(1:nkeywords) :: keywords = &
15 (/'PROBLEMSIZE ', &
16 'NFTRANS_TD '/)
18 CONTAINS
19 SUBROUTINE Parser(nx, ny, keyword)
20 integer, intent(inout) :: nx, ny
21 character(80), intent(inout) :: keyword
23 select case (keyword)
24 case (trim(keywords(1))) ! PROBLEMSIZE
25 nx = 1
26 case (trim(keywords(2))) !'NFTRANS_TD'
27 ny = 1
28 end select
30 END SUBROUTINE Parser
31 END MODULE Readdata_mod