Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / predict-20.c
blob31d01835b80a32d4b79c69ea90754fbad0fe72a1
1 /* PR tree-optimization/86925 */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
6 int a, b;
8 void
9 c ()
11 for (;;)
13 if (__builtin_expect (b < 0, 0))
14 break;
15 if (__builtin_expect (a, 1))
16 break;
18 int d = b < 0;
19 if (__builtin_expect (d, 0))
20 asm("");
23 /* { dg-final { scan-tree-dump-times "__builtin_expect heuristics of edge" 3 "profile_estimate"} } */