Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/parent_result_ref_1.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! Tests the fix for PR19546 in which an ICE would result from ! setting the parent result in a contained procedure. ! From the testcase of Francois-Xavier Coudert/Tobias Schlueter ! function f() integer :: f f = 42 call sub () if (f.eq.1) f = f + 1 contains subroutine sub if (f.eq.42) f = f - 41 end subroutine sub end function f integer, external :: f if (f ().ne.2) call abort () end