summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
blob: 4412e701192c21a0bbfb5023a5e2cb716b1c6c5f (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
31
32
33
34
# 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 = {a, b, c} * (whatev + 1)[int]

bool j = _op_order(f`.data) < _op_order(g`.data)

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

~uint8 printf = "Unmatched closing delimiter at {line %d, col %d, %s}"