summaryrefslogtreecommitdiff
path: root/tests/test_pointer_5.tnsl
blob: 2534dde06a80a80e4ea90f66f025ba6026d7ebce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
struct Hold {
	~~uint8 a,
	~uint8 b
}

/; method Hold

	/; set (~uint8 to_set)
		self.b = to_set
		self.a = ~self.b
	;/
;/

/; main [int]
	uint8 val = 69
	
	Hold h
	h.set(~val)
	
	return h.a``
;/