2007-03-21 01:34:31 +08:00
|
|
|
// RUN: %llvmgcc -S %s -o /dev/null -fnested-functions
|
2004-11-07 06:41:00 +08:00
|
|
|
|
2004-11-07 04:38:27 +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. */
|
|
|
|
|
2003-02-13 05:45:39 +08:00
|
|
|
main()
|
|
|
|
{
|
|
|
|
__label__ l;
|
|
|
|
|
|
|
|
void*x()
|
|
|
|
{
|
|
|
|
goto l;
|
|
|
|
}
|
|
|
|
|
|
|
|
x();
|
|
|
|
abort();
|
|
|
|
return;
|
|
|
|
l:
|
|
|
|
exit(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|