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