Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/dec_structure_15.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
! { dg-do "compile" } ! { dg-options "" } ! ! PR fortran/77584 ! Regression where "structure" and "record" greedily matched a ! declaration-type-spec in a procedure-declaration-statement (R1212). ! module dec_structure_15 abstract interface double precision function structure_() end function structure_ end interface abstract interface double precision function record_() end function record_ end interface contains double precision function a() procedure(structure_), pointer :: b ! regression: Unclassifiable statement a = 0.0 end function double precision function a2() procedure(record_), pointer :: b ! regression: Unclassifiable statement a2 = 0.0 end function end module