aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/c_assoc_3.f90
blob: 024c2d8d5d5171b336cd10a0f1f3d4a2e7116a80 (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)) STOP 1
END PROGRAM c_assoc