aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr90071.c
blob: 1c4099cefe0c426c328330cd992bdb2994580c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do compile } */
/* { dg-require-effective-target indirect_jumps } */
/* { dg-require-effective-target label_values } */

int a;
static int b;

void
foo ()
{
  int d;
  int e = (int) (__INTPTR_TYPE__) &&f;
  void *g = &&h;
h: ++e;
   if (a)
     i: goto *g;
   for (;;)
     {
       e = 0;
       if (b)
	 goto i;
     }
f:
   goto *(void*)(__INTPTR_TYPE__)({ d || e < 0 || e >= 2; });
   &e;
}