Debian Codegraph @

gcc/testsuite/gfortran.dg/entry_array_specs_3.f90

raw
1 ! { dg-do compile }
2 !
3 ! PR fortran/34861, in which the test of conformity of the result array bounds
4 ! would barf because they are not known at compile time in this case.
5 !
6 ! Contributed by Dick Hendrickson <[email protected]>
7 !
8 FUNCTION I_IMFUD0 ( IDA2 , NDS4, NDS3) RESULT(I_IMFUDP)
9 INTEGER :: NDS4, NDS3
10 INTEGER :: IDA2(5,NDS4,NDS3,2)
11 INTEGER :: I_IMFUDP(SIZE(IDA2,1), SIZE(IDA2,2), SIZE(IDA2,3), SIZE(IDA2,4))
12 ENTRY I_IMFUDX (NDS4, NDS3, IDA2) RESULT(I_IMFUDP)
13 ENTRY I_IMFUDY (NDS3, NDS4, IDA2) RESULT(I_IMFUDP)
14 ENTRY I_IMFUDZ (NDS3, IDA2, NDS4) RESULT(I_IMFUDP)
15 I_IMFUDP = 1-IDA2(:,:,:,::NDS4-NDS3)
16 END FUNCTION