summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/vect/pr46213.f90
blob: 504d1a3cf8413261c60f2661af8df391ea9240e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
! { dg-do compile }
! { dg-options "-O -fno-tree-loop-ivcanon -ftree-vectorize -fno-tree-ccp -fno-tree-ch -finline-small-functions" }

module foo
  INTEGER, PARAMETER :: ONE = 1
end module foo
program test
  use foo
  integer :: a(ONE), b(ONE), c(ONE), d(ONE)
  interface
    function h_ext()
    end function h_ext
  end interface
  c = j()
  if (any (c .ne. check)) call myabort (7)
contains
  function j()
     integer :: j(ONE), cc(ONE)
     j = cc - j
  end function j
  function get_d()
  end function get_d
end program test

! { dg-final { cleanup-tree-dump "vect" } }