Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/generic_typebound_operator_1.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR fortran/45916 ! ICE with generic type-bound operator module m_sort implicit none type, abstract :: sort_t contains generic :: operator(.gt.) => gt_cmp procedure(gt_cmp), deferred :: gt_cmp end type sort_t interface logical function gt_cmp(a,b) import class(sort_t), intent(in) :: a, b end function gt_cmp end interface end module m_sort