summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/der_pointer_3.f90
blob: ad9f7a7f880cc4752fc32fda8a2c04dc8c9db0c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
! { dg-do compile }
! PR 18568
! Find pointer-to-array components
module ints
   type :: bar
      integer, pointer :: th(:)
   end type bar
contains
   function foo(b)
      type(bar), intent(in) :: b
      integer :: foo(size(b%th))
      foo = 0
   end function foo
end module ints

program size_test
  use ints
end program size_test

! { dg-final { cleanup-modules "ints" } }