libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr103680.c
blob30599fc1ef2e1975dcc5d51530f1c45dd7e1a5ba
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-optimized-details-blocks -fno-early-inlining" } */
3 void foo ();
4 static void
5 test (int i)
7 if (__builtin_expect_with_probability (i > 5, 1, 0.6))
8 foo ();
10 void
11 test2(int i)
13 test (i);
14 if (__builtin_expect_with_probability (i > 4, 1, 0.7))
15 foo ();
17 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */