blob: 110b38359751c1aeb95e47eb953d17c09870094b [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-profile_estimate" } */
void bar (void);
void
foo (int i, double d)
{
if (__builtin_expect_with_probability (i, 0, d)) /* { dg-error "probability .d. must be constant floating-point expression" } */
bar ();
}
/* { dg-final { scan-tree-dump-not "__builtin_expect_with_probability heuristics of edge" "profile_estimate"} } */