aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend/2003-02-12-NonlocalGoto.c
blob: b5813308a1d530aeaaf930011b347aa5907707a8 (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
25
26
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null

// XFAIL: *
/* It is unlikely that LLVM will ever support nested functions, but if it does,
   here is a testcase. */

main()
{
  __label__ l;

  void*x()
  {
    goto l;
  }

  x();
  abort();
  return;
l:
  exit(0);
}