gcc/testsuite/gfortran.dg/nested_array_constructor_6.f90
raw| 1 | ! { dg-do compile } |
| 2 | |
| 3 | ! PR fortran/35846 |
| 4 | ! Nested three levels deep. |
| 5 | |
| 6 | ! Contributed by Tobias Burnus <[email protected]> |
| 7 | |
| 8 | implicit none |
| 9 | character(len=3) :: c(3) |
| 10 | c = 'a' |
| 11 | c = (/ (/ 'A'//(/ trim(c(1)), 'a' /)/)//'c', 'dcd' /) |
| 12 | print *, c(1) |
| 13 | print *, c(2) |
| 14 | print *, c(3) |
| 15 | end |