aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/associative_1.f90
blob: 977584939ffa7a948328c207f784a116fe0ac127 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! { dg-options "-O1 -fno-signed-zeros -fno-trapping-math -fdump-tree-optimized" }
! Fortran defaults to associative by default,
! with -fno-signed-zeros -fno-trapping-math this should optimize away all additions
SUBROUTINE S1(a)
 REAL :: a
 a=1+a-1
END SUBROUTINE S1
! { dg-final { scan-tree-dump-times " \\\+ " 0 "optimized" } }