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

import . "swigtests/using_private"

func main() {
	f := NewFooBar()
	f.SetX(3)

	if f.Blah(4) != 4 {
		panic("blah(int)")
	}

	if f.Defaulted() != -1 {
		panic("defaulted()")
	}

	if f.Defaulted(222) != 222 {
		panic("defaulted(222)")
	}
}