summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/reassoc_1.f90
blob: 71a9bc9286eb551924822b28ca93a8fac29e61eb (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do compile }
! { dg-options "-O3 -ffast-math -fdump-tree-optimized" }

function test(b)
  real a
  a = (b + 5.) - 5.
  test = a
end

! { dg-final { scan-tree-dump "\\\+ 5.*\\\)\\\) - 5" "optimized" } }
! { dg-final { cleanup-tree-dump "optimized" } }