summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr43475.f90
blob: 72c0d18348befed749bb09221fde2a8d4856d371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! PR middle-end/43475
! { dg-do compile }
! { dg-options "-O2" }
subroutine ss(w)
  implicit none
  integer :: w(:)
  integer :: b,c,d
  b = w(8)
  c = 5
  d = 3
  call s1(c)
  call s2(b+c)
  call s3(w(b))
end subroutine ss