annotate gcc/testsuite/gfortran.dg/whole_file_6.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 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 ! { dg-options "-O3 -fdump-tree-optimized" }
111
kono
parents:
diff changeset
3 ! { dg-add-options bind_pic_locally }
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Check that inlining of functions declared AFTER usage works.
kono
parents:
diff changeset
6 ! If yes, then the dump does not contain a call to F().
kono
parents:
diff changeset
7 !
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 PROGRAM main
kono
parents:
diff changeset
10 INTEGER :: a(3), f
kono
parents:
diff changeset
11 a = f()
kono
parents:
diff changeset
12 print *, a
kono
parents:
diff changeset
13 END PROGRAM
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 INTEGER FUNCTION f()
kono
parents:
diff changeset
16 f = 42
kono
parents:
diff changeset
17 END FUNCTION
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 ! { dg-final { scan-tree-dump-times "= f \\(\\)" 0 "optimized" } }