Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/whole_file_5.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
rev | line source |
---|---|
111 | 1 ! { 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 BEFORE usage works. | |
6 ! If yes, then the dump does not contain a call to F(). | |
7 ! | |
8 | |
9 INTEGER FUNCTION f() | |
10 f = 42 | |
11 END FUNCTION | |
12 | |
13 PROGRAM main | |
14 INTEGER :: a, f | |
15 a = f() | |
16 print *, a, f() | |
17 END PROGRAM | |
18 | |
19 ! { dg-final { scan-tree-dump-times "= f \\(\\)" 0 "optimized" } } |