Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/inline-38.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo,foo2 -fdisable-ipa-inline -Wno-attributes" } */ | |
3 int g; | |
4 __attribute__((always_inline)) void bar (void) | |
5 { | |
6 g++; | |
7 } | |
8 | |
9 int foo (void) | |
10 { | |
11 bar (); | |
12 return g; | |
13 } | |
14 | |
15 int foo2 (void) | |
16 { | |
17 bar(); | |
18 return g + 1; | |
19 } | |
20 | |
21 /* { dg-final { scan-tree-dump-times "bar" 5 "optimized" } } */ |