Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/inline-39.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo2 -fdisable-ipa-inline -Wno-attributes" } */ | |
3 /* { dg-add-options bind_pic_locally } */ | |
4 int g; | |
5 __attribute__((always_inline)) void bar (void) | |
6 { | |
7 g++; | |
8 } | |
9 | |
10 int foo (void) | |
11 { | |
12 bar (); | |
13 return g; | |
14 } | |
15 | |
16 int foo2 (void) | |
17 { | |
18 bar(); | |
19 return g + 1; | |
20 } | |
21 | |
22 /* { dg-final { scan-tree-dump-times "bar" 4 "optimized" } } */ |