aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/typedef_scope_runme.go
blob: 9c845bb698c4053edff14c288d747f063d5ad325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main

import "swigtests/typedef_scope"

func main() {
	b := typedef_scope.NewBar()
	x := b.Test1(42, "hello")
	if x != 42 {
		panic("Failed!!")
	}

	xb := b.Test2(42, "hello")
	if xb != "hello" {
		panic("Failed!!")
	}
}