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

extern func void(int) putchar;
extern func int(string) puts;

void f(char c) {
	putchar(c);
}

int main(int argc, ptr(string) argv) {
	string s = "kaas";
	ptr(i8) s2 = "kaas2";
	//f('x');
	puts(s2);
	return 0;
}