Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/data_stmt_pointer.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } program foo real, pointer :: p real, save, target :: x = 42 data p / x / if (p /= 42) stop 1 call bar end program foo subroutine bar type bah integer, pointer :: p end type bah type(bah) a integer, save, target :: i = 42 data a%p / i / if (a%p /= 42) stop 2 end subroutine