aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/smart_pointer_templatevariables_runme.go
blob: 8f7102d43f08cfd92b6210e6dbf6c65460112641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main

import . "swigtests/smart_pointer_templatevariables"

func main() {
	d := NewDiffImContainerPtr_D(Create(1234, 5678))

	if d.GetId() != 1234 {
		panic(0)
	}
	//if (d.xyz != 5678):
	//  panic(0)

	d.SetId(4321)
	//d.xyz = 8765

	if d.GetId() != 4321 {
		panic(0)
	}
	//if (d.xyz != 8765):
	//  panic(0)
}