aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr70152.c
blob: 27a092d199af86c2cce2145e7f88753fde1735f4 (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
/* PR tree-optimization/70152 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

int a;
int foo (void);
int setjmp (char *);
char buf[64];

static int
bar (int x)
{
  x = 0;
  setjmp (buf);
  for (;;)
    {
    switch (x)
      case 5:
	x = foo ();
    }
}

void
baz (void)
{
  bar (a);
}