Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray_poly_2.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
3 !
4 type t
5 end type t
6 type(t) :: a[*]
7 call test(a) ! { dg-error "Rank mismatch in argument 'x' at .1. .rank-1 and scalar." }
8 contains
9 subroutine test(x)
10 class(t) :: x(:)[*]
11 print *, ucobound(x)
12 end
13 end