Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/unlimited_polymorphic_25.f03 @ 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 } ! ! Tests the fix for PR69566, in which a boolean expression testing a ! the component of a pointer did not check the pointer, resulting in ! the ICE. ! ! Contributed by Janus Weil <janus@gcc.gnu.org> ! print *, associated(return_pointer()) ! ICE contains function return_pointer() class(*), pointer :: return_pointer(:) end function end