mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
10 lines
350 B
Fortran
10 lines
350 B
Fortran
! { 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" } }
|