blob: 4c7a882f7553a7e3b7f6227ba5b0c4ea3b698540 [file] [log] [blame]
Eric Biederman83b991a2003-10-11 06:20:25 +00001#include "linux_syscall.h"
2#include "linux_console.h"
3static void goto_test(void)
4{
5 int i;
6 print_debug("goto_test\n");
Stefan Reinauer14e22772010-04-27 06:56:47 +00007
Eric Biederman83b991a2003-10-11 06:20:25 +00008 i = 0;
9 goto bottom;
10 {
11 top:
Stefan Reinauer14e22772010-04-27 06:56:47 +000012 print_debug("i = ");
13 print_debug_hex8(i);
Eric Biederman83b991a2003-10-11 06:20:25 +000014 print_debug("\n");
Stefan Reinauer14e22772010-04-27 06:56:47 +000015
Eric Biederman83b991a2003-10-11 06:20:25 +000016 i = i + 1;
17 }
18 bottom:
19 if (i < 10) {
20 goto top;
21 }
22}
23
24static void main(void)
25{
26 goto_test();
27 _exit(0);
28}