gcc/testsuite/gfortran.dg/spec_expr_9.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! |
| 3 | ! PR fortran/111781 |
| 4 | ! Used to fail with Error: Variable ānā cannot appear in the |
| 5 | ! expression at (1) for line 16. |
| 6 | ! |
| 7 | program is_it_valid |
| 8 | dimension y(3) |
| 9 | integer :: n = 3 |
| 10 | interface |
| 11 | function func(x) |
| 12 | import |
| 13 | dimension func(n) |
| 14 | end function |
| 15 | end interface |
| 16 | y=func(1.0) |
| 17 | print *, y |
| 18 | stop |
| 19 | end |