summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/ipcp-array-1.f90
blob: 81cc61509cc928d7b2f2cca8a4db5478b4aff124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { dg-do compile }
! { dg-options "-O2 -fdump-ipa-cp-details -fno-inline -fdump-tree-optimized" }

subroutine bar (a, b, n)
  integer :: a(n), b(n)
  call foo (a, b)
contains
subroutine foo (a, b)
  integer :: a(:), b(:)
  a = b
end subroutine
end

! { dg-final { scan-ipa-dump "Creating a specialized node of foo" "cp" } }
! { dg-final { scan-ipa-dump-times "Aggregate replacements\[^=\]*=\[^=\]*=\[^=\]*=\[^=\]*=\[^=\]*=\[^=\]*=\[^=\]*=\[^=\]*=" 2 "cp" } }
! { dg-final { scan-tree-dump-not "stride;" "optimized" } }
! { dg-final { scan-tree-dump-not "lbound;" "optimized" } }