Debian Codegraph @

gcc/testsuite/gfortran.dg/c-interop/fc-descriptor-8.f90

raw
1 ! { dg-do run }
2 ! { dg-additional-sources "fc-descriptor-8-c.c dump-descriptors.c" }
3 !
4 ! Check that C descriptors have the version field set correctly.
5 ! This program is just a stub to create a descriptor and pass it to the
6 ! C function, which does the actual test.
7
8 program testit
9 use iso_c_binding
10 implicit none
11
12 interface
13 subroutine ctest (a) bind (c)
14 use iso_c_binding
15 integer(C_INT) :: a(:,:)
16 end subroutine
17 end interface
18
19 integer(C_INT) :: aa(10,-1:3)
20 call ctest (aa)
21
22 end program