]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr85799.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr85799.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
3
4 void unlikely();
5 void likely();
6
7 inline int expect_false(int b) {
8 return __builtin_expect(b, 0);
9 }
10
11 void inline_func_hint(int b) {
12 if (expect_false(b)) {
13 unlikely();
14 } else {
15 likely();
16 }
17 }
18
19 /* { dg-final { scan-tree-dump "_builtin_expect heuristics of edge" "profile_estimate"} } */