aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend/2003-02-12-NonlocalGoto.c
blob: cb84dc94569c71dc4cfd3e0063663c215ce9bcad (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

/* 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);
}