summaryrefslogtreecommitdiff
path: root/nl/simple.nl
blob: 699fec2e44561acdc18f486e6eb2320d72c8bb2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
type int = i32;
type char = i8;

int g_var;

int main(i32 argc, ptr(ptr(i8)) argv) {
	//int i = g_var;
	int i = 40;
	//i = g_var + 2 + 3;
	int a = i + 2;
	if (a == 41) {
		return 10;
	} else {
		a = 20;
	}
	while (a < 42) {
		a = a + 1;
	}
	return a;
}