summaryrefslogtreecommitdiff
path: root/util/romcc/tests/linux_test3.c
blob: 4c7a882f7553a7e3b7f6227ba5b0c4ea3b698540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "linux_syscall.h"
#include "linux_console.h"
static void goto_test(void)
{
	int i;
	print_debug("goto_test\n");

	i = 0;
	goto bottom;
	{
	top:
		print_debug("i = ");
		print_debug_hex8(i);
		print_debug("\n");

		i = i + 1;
	}
 bottom:
	if (i < 10) {
		goto top;
	}
}

static void main(void)
{
	goto_test();
	_exit(0);
}