1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */ 3 4 void bar (void); 5 6 void foo(int i,double d)7foo (int i, double d) 8 { 9 if (__builtin_expect_with_probability (i, 0, d)) /* { dg-error "probability .d. must be constant floating-point expression" } */ 10 bar (); 11 } 12 13 /* { dg-final { scan-tree-dump-not "__builtin_expect_with_probability heuristics of edge" "profile_estimate"} } */ 14