Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/host_assoc_function_4.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 } ! ! PR fortran/37445, in which the contained 's1' would be ! ignored and the use+host associated version used. ! ! Contributed by Norman S Clerman < clerman@fuse.net> ! MODULE M1 CONTAINS integer function S1 () s1 = 0 END function END MODULE MODULE M2 USE M1 CONTAINS SUBROUTINE S2 if (s1 () .ne. 1) call abort CONTAINS integer function S1 () s1 = 1 END function END SUBROUTINE END MODULE USE M2 CALL S2 END