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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-O3 -fwhole-file -fdump-tree-optimized" }
3
! { dg-add-options bind_pic_locally }
4
!
5
! Check that inlining of functions declared AFTER usage works.
6
! If yes, then the dump does not contain a call to F().
7
!
8
 
9
PROGRAM main
10
  INTEGER :: a(3), f
11
  a = f()
12
  print *, a
13
END PROGRAM
14
 
15
INTEGER FUNCTION f()
16
  f = 42
17
END FUNCTION
18
 
19
! { dg-final { scan-tree-dump-times "= f \\(\\)" 0 "optimized" } }
20
! { dg-final { cleanup-tree-dump "optimized" } }

powered by: WebSVN 2.1.0

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