aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr54838.c
blob: 9ed92f9e1d26254ea113166bafb295c51f10292a (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
/* PR middle-end/54838 */
/* { dg-do compile } */
/* { dg-options "-O2 -fno-forward-propagate -ftracer" } */

void bar (void);

void
foo (void *b, int *c)
{
again:
  switch (*c)
    {
    case 1:
      if (!b)
	{
	  bar ();
	  return;
	}
      goto again;
    case 3:
      if (!b)
	goto again;
    }
}