summaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/ret_by_value_runme.go
blob: 345868dcde9447eec3ac9c658d5864084b497a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package main

import "swigtests/ret_by_value"

func main() {
	a := ret_by_value.Get_test()
	if a.GetMyInt() != 100 {
		panic(0)
	}

	if a.GetMyShort() != 200 {
		panic(0)
	}
}