aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/dependency_35.f90
blob: 23b7e7460731bcd60c66d3ea235f9e2a8e42b7ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! { dg-do compile }
! { dg-options "-Warray-temporaries -O" }
module foo
  implicit none
contains
  pure function bar(i,j)
    integer, intent(in) :: i,j
    integer, dimension(2,2) :: bar
    bar = 33
  end function bar
end module foo

program main
  use foo
  implicit none
  integer a(2,2), b(2,2),c(2,2), d(2,2), e(2)

  read (*,*) b, c, d
  a = matmul(b,c) + d
  a = b + bar(3,4)
  a = bar(3,4)*5 + b
  e = sum(b,1) + 3
end program main