summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr46107.c
blob: 41582b8a161a971f112b7d135e32219a47592c03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimization/46107 */

int foo (void) __attribute__ ((noreturn));

void
bar (int x, int *y, int z)
{
  static void *j[] = { &&l1, &&l2 };
l1:
  if (*y)
    goto *j[z];
  foo ();
l2:
  *y ^= (x & 1) ? -1 : 0;
  goto *j[x];
}