[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / parameter_array_dummy.f90
blobd9a43432fd58b946bc22864434c6030ffedc8200
1 ! { dg-do run }
2 ! PR fortran/31188
3 program foo_mod
4 implicit none
5 character (len=1), parameter :: letters(2) = (/"a","b"/)
6 call concat(1, [1])
7 call concat(2, [2])
8 call concat(3, [1,2])
9 call concat(4, [2,1])
10 call concat(5, [2,2,2])
11 contains
12 subroutine concat(i, ivec)
13 integer, intent(in) :: i, ivec(:)
14 write (*,*) i, "a" // letters(ivec)
15 end subroutine concat
16 end program foo_mod
17 ! { dg-output " *1 aa(\n|\r\n|\r)" }
18 ! { dg-output " *2 ab(\n|\r\n|\r)" }
19 ! { dg-output " *3 aaab(\n|\r\n|\r)" }
20 ! { dg-output " *4 abaa(\n|\r\n|\r)" }
21 ! { dg-output " *5 ababab(\n|\r\n|\r)" }