summaryrefslogtreecommitdiff
path: root/tests/test_funcall_3.tnsl
blob: 0a77bf09d49d9b9321fc42453e067ed865e44438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
struct Str {
	int i, j
}

/; strout [Str]
	Str out
	out.i = 60
	out.j = 9
	return out
;/

/; strin (Str in) [int]
	return in.i
;/

/; main [int]
	Str out = strout()
	return strin(out) + out.j
;/