gcc/testsuite/gfortran.dg/unlimited_polymorphic_7.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! |
| 3 | ! PR fortran/55763 |
| 4 | ! |
| 5 | ! Contributed by Harald Anlauf |
| 6 | ! |
| 7 | |
| 8 | module gfcbug121 |
| 9 | implicit none |
| 10 | type myobj |
| 11 | class(*), allocatable :: x |
| 12 | contains |
| 13 | procedure :: print |
| 14 | end type myobj |
| 15 | contains |
| 16 | subroutine print(this) |
| 17 | class(myobj) :: this |
| 18 | end subroutine print |
| 19 | end module gfcbug121 |