aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr85168.c
blob: cc5e6648c7e7cc3c56c088cc0cf68fd9bd10e264 (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
27
28
29
30
/* { dg-do compile } */
/* { dg-require-effective-target indirect_jumps } */

typedef struct {
    struct {
	char a;
    } b;
} c;

int d, f;
c *e;

extern void i(void);
extern void sejtmp () __attribute__((returns_twice));

void g(void)
{
  c *h = e;
  if (f)
    {
      i();
      h--;
      if (d)
	if (h->b.a)
	  i();
    }
  if (h->b.a)
    sejtmp();
  e = h;
}