gcc/testsuite/gfortran.dg/associate_73.f90
raw| 1 | !{ dg-do compile } |
| 2 | |
| 3 | ! Check associate to a "void *" does not ICE. |
| 4 | ! Contributed by Matthias Klose <[email protected]> |
| 5 | ! and Steve Kargl <[email protected]> |
| 6 | |
| 7 | module pr118789 |
| 8 | |
| 9 | implicit none |
| 10 | |
| 11 | CONTAINS |
| 12 | |
| 13 | subroutine fckit_c_nodelete(cptr) bind(c) |
| 14 | use, intrinsic :: iso_c_binding |
| 15 | type(c_ptr), value :: cptr |
| 16 | associate( unused_ => cptr ) |
| 17 | end associate |
| 18 | end subroutine |
| 19 | |
| 20 | end module |
| 21 |