aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/max_expr.f90
blob: c00ad62f744ffd2b4f258b3611e6d10d3bcf95e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
! { dg-options "-O2 -fdump-tree-optimized" }

subroutine foo (a, b, c, d, e, f, g, h)
  real (kind=8) :: a, b, c, d, e, f, g, h
  a = max (a, b, c, d, e, f, g, h)
end subroutine

subroutine foof (a, b, c, d, e, f, g, h)
  real (kind=4) :: a, b, c, d, e, f, g, h
  a = max (a, b, c, d, e, f, g, h)
end subroutine


! { dg-final { scan-tree-dump-times "MAX_EXPR " 14 "optimized" } }