OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [function_optimize_6.f90] - Blame information for rev 708

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-O -fdump-tree-original" }
3
! PR 48405 - function elimnination in a DO loop should work.
4
program main
5
  interface
6
     pure function mypure()
7
       integer :: mypure
8
     end function mypure
9
  end interface
10
  DO I=1,mypure() + mypure()
11
  ENDDO
12
END program main
13
! { dg-final { scan-tree-dump-times "mypure" 1 "original" } }
14
! { dg-final { cleanup-tree-dump "original" } }
15
 
16
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.