gcc/testsuite/gfortran.dg/pr99368.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! |
| 3 | ! Contributed by Gerhard Steinmetz <[email protected]> |
| 4 | ! |
| 5 | program p |
| 6 | type y ! { dg-error "Derived type" } |
| 7 | end type |
| 8 | contains |
| 9 | subroutine s1 |
| 10 | namelist /x/ y ! { dg-error "conflicts with namelist object" } |
| 11 | character(3) y |
| 12 | end |
| 13 | subroutine s2 |
| 14 | namelist /z/ y ! { dg-error "conflicts with namelist object" } |
| 15 | character(3) y |
| 16 | end |
| 17 | end |