summaryrefslogtreecommitdiff
path: root/test/CFrontend/2003-02-12-NonlocalGoto.c
blob: 81d97e06b5f6bbcb20eee91c0ee54f1bc7560b36 (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 /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);
}