Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gfortran.dg / array_constructor_20.f90
blobde7246d205e8da6a7b748f79cabb411fe2b15872
1 ! { dg-do compile }
3 ! PR fortran/34784, in which the intrinsic expression would be
4 ! given the implicit type.
6 ! Contributed by Dick Hendrickson <dick.hendrickson@gmail.com>
8 MODULE m
9 implicit character(s)
10 INTEGER :: I(1) = (/ (SELECTED_INT_KIND(J),J=1,1) /)
11 END MODULE m
13 MODULE s_TESTS
14 IMPLICIT CHARACTER (P)
15 CONTAINS
16 subroutine simple (u,j1)
17 optional :: j1
18 if (present (j1)) stop
19 end subroutine
20 END MODULE s_TESTS
22 ! { dg-final { cleanup-modules "m s_TESTS" } }