Debian Codegraph @

gcc/testsuite/gfortran.dg/dependency_56.f90

raw
1 ! { dg-do compile }
2 ! PR 91783 - used to cause an ICE in dependency checking.
3 ! Test case by Gerhard Steinmetz.
4 program p
5 class(*), allocatable :: a(:)
6 a = [1, 2, 3]
7 a = f(a)
8 contains
9 function f(x) result(y)
10 class(*), allocatable, intent(in) :: x(:)
11 class(*), allocatable :: y(:)
12 y = x
13 end
14 end