gcc/testsuite/gfortran.dg/coarray/pr85510.f90
raw| 1 | !{ dg-do run } |
| 2 | |
| 3 | ! Contributed by Damian Rouson <[email protected]> |
| 4 | ! Check that PR fortran/85510 links. |
| 5 | |
| 6 | module foo |
| 7 | contains |
| 8 | subroutine bar() |
| 9 | integer, save :: i[*] = 1 |
| 10 | associate(n=>1) |
| 11 | if (i[1] /= 1) stop 1 |
| 12 | end associate |
| 13 | end subroutine |
| 14 | end module |
| 15 | |
| 16 | use foo |
| 17 | call bar() |
| 18 | end |
| 19 |