1 /* { dg-do compile } */
2 /* { dg-require-effective-target indirect_jumps } */
3 /* { dg-require-effective-target label_values } */
4 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
5
6 int a, b;
7
8 void c() {
9 &&d;
10 void *e = &&f, *g = &&h;
11 f:
12 __attribute__((hot)) h : __attribute__((cold)) for (; a;) goto *g;
13 d:
14 for (; b;)
15 goto *e;
16 }
17
18 /* { dg-final { scan-tree-dump-times "predicted to even probabilities" 4 "profile_estimate"} } */
19