summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/c_assoc_3.f90
blob: 0aceb42ec5bf7f58a0c3ad3746938ce2c8c918f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { 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