gcc/testsuite/gfortran.dg/c-interop/allocate.f90
raw| 1 | ! { dg-do run } |
| 2 | ! { dg-additional-sources "allocate-c.c dump-descriptors.c" } |
| 3 | ! { dg-additional-options "-g" } |
| 4 | ! |
| 5 | ! This program tests the CFI_allocate and CFI_deallocate functions. |
| 6 | ! All the interesting things happen in the corresponding C code. |
| 7 | |
| 8 | program testit |
| 9 | use iso_c_binding |
| 10 | implicit none |
| 11 | |
| 12 | interface |
| 13 | subroutine ctest () bind (c) |
| 14 | end subroutine |
| 15 | end interface |
| 16 | |
| 17 | call ctest () |
| 18 | |
| 19 | end program |