aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20050510-1.c
blob: 84f198fa8f7f84b91f93ec2cdf516d324e05d507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-require-effective-target indirect_jumps } */
/* { dg-require-effective-target label_values } */

void bar (int k)
{
  void *label = (k) ? &&x : &&y;
  if (k)
    goto *label;

x:
  if (k)
    dont_remove ();
y:
  return;
}