blob: 024c2d8d5d5171b336cd10a0f1f3d4a2e7116a80 [file] [log] [blame]
! { 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)) STOP 1
END PROGRAM c_assoc