Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/associative_1.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 (2020-05-25) |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { 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" } }