aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/labels-3.c
blob: 51ac88380b828a49da54237cd5d6636758072e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Verify that we can narrow the storage associated with label diffs.  */

int foo (int a)
{
  static const short ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
  void *p = &&l1 + ar[a];
  goto *p;
 l1:
  return 1;
 l2:
  return 2;
}