1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */ 3 4 void unlikely(); 5 void likely(); 6 expect_false(int b)7inline int expect_false(int b) { 8 return __builtin_expect(b, 0); 9 } 10 inline_func_hint(int b)11void 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"} } */ 20