llvm-6502/test/CFrontend/2003-02-12-NonlocalGoto.c
2007-03-20 17:34:31 +00:00

27 lines
281 B
C

// RUN: %llvmgcc -S %s -o /dev/null -fnested-functions
// 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);
}