summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
blob: 691e0fbc3e0b58703c7aa78acfd20444790b646e (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
29
30
# should not be included

~uint lmao

~{2}user c

struct user {
	~int abcd,
	~Geko hij
}

struct Geko {
	int i
}

/; module mod
	int i = 0
	/; whatev (~uint8 a) [uint8]
		# return a{0}
	;/
;/

int i = mod.i * 2 + 1 * 4 - 2

/; main [int]
	# ~uint8 a = "asdf\0"
	#whatev(a)
	#whatev("asdf\0")
	#return 0
;/