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