hanchenye-llvm-project/llvm/test/CFrontend/2003-02-12-NonlocalGoto.c

27 lines
281 B
C
Raw Normal View History

// RUN: %llvmgcc -S %s -o /dev/null -fnested-functions
2004-11-07 06:41:00 +08:00
// XFAIL: *
2003-04-26 02:44:30 +08:00
/* 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);
}