summaryrefslogtreecommitdiff
path: root/util/romcc/tests/linux_test3.c
blob: 97187ae5e6c3ec667197a24ad5206ad26ad6656d (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);
}