view gcc/testsuite/gfortran.dg/c_assoc_3.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children 84e7813d76e9
line wrap: on
line source

! { dg-do compile }
!
! PR fortran/43303
!
! Contributed by Dennis Wassel
!
PROGRAM c_assoc
  use iso_c_binding
  type(c_ptr) :: x
  x = c_null_ptr
  print *, C_ASSOCIATED(x) ! <<< was ICEing here
  if (C_ASSOCIATED(x)) call abort ()
END PROGRAM c_assoc