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

import . "swigtests/class_case"

func main() {
	b2 := NewClassB2()
	// This used to fail with:
	// panic: interface conversion: interface {} is class_case.SwigcptrClassB2, not int
	if Test2(b2) != 1 {
		panic("Unexpected overload used")
	}
}