2 ! { dg-additional-sources assumed_rank_8_c.c }
6 ! Scalars to assumed-rank tests
17 integer, target
:: ii
, j
18 integer, allocatable
:: kk
19 integer, pointer :: ll
27 if (j
/= 2) call abort()
34 if (j
/= 1) call abort()
40 if (j
/= 1) call abort()
45 integer, optional
:: x(..)
47 if (.not
. present (x
)) return
48 if (rank (x
) /= 0) call abort
54 integer, pointer, intent(in
) :: x(..)
56 if (.not
. associated (x
)) return
57 if (rank (x
) /= 0) call abort ()
63 integer, allocatable
:: x(..)
65 if (.not
. allocated (x
)) return
66 if (rank (x
) /= 0) call abort