2003-10-11 08:20:25 +02:00
|
|
|
#include "linux_syscall.h"
|
|
|
|
#include "linux_console.h"
|
|
|
|
static void goto_test(void)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
print_debug("goto_test\n");
|
2010-04-27 08:56:47 +02:00
|
|
|
|
2003-10-11 08:20:25 +02:00
|
|
|
i = 0;
|
|
|
|
goto bottom;
|
|
|
|
{
|
|
|
|
top:
|
2010-04-27 08:56:47 +02:00
|
|
|
print_debug("i = ");
|
|
|
|
print_debug_hex8(i);
|
2003-10-11 08:20:25 +02:00
|
|
|
print_debug("\n");
|
2010-04-27 08:56:47 +02:00
|
|
|
|
2003-10-11 08:20:25 +02:00
|
|
|
i = i + 1;
|
|
|
|
}
|
|
|
|
bottom:
|
|
|
|
if (i < 10) {
|
|
|
|
goto top;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void main(void)
|
|
|
|
{
|
|
|
|
goto_test();
|
|
|
|
_exit(0);
|
|
|
|
}
|