llvm.org GIT mirror llvm / 2fdd3c0 test / CFrontend / 2003-02-12-NonlocalGoto.c
2fdd3c0

Tree @2fdd3c0 (Download .tar.gz)

2003-02-12-NonlocalGoto.c @2fdd3c0raw · history · blame

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