Change wording of __builtin_expect_with_probability errors.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr87811-2.c
blob8b0818756e2476ee7780abfa89c1f48686b22ea8
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
4 void bar (void);
6 void
7 foo (int i)
9 if (__builtin_expect_with_probability (i, 0, 2.0f)) /* { dg-error "probability .* is outside the range \\\[0\\\.0, 1\\\.0\\\]" } */
10 bar ();
13 /* { dg-final { scan-tree-dump-not "__builtin_expect_with_probability heuristics of edge" "profile_estimate"} } */