aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr65735.c
blob: c30de8ea3989844200b96b5bf01dc0594f24de94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR tree-optimization/65735 */

int foo (void);

void
bar (int a, int b, int c)
{
  while (!a)
    {
      c = foo ();
      if (c == 7)
	c = b;
      switch (c)
	{
	case 1:
	  a = b++;
	  if (b)
	    b = 1;
	}
    }
}