aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/class_case_runme.go
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/go/class_case_runme.go')
-rw-r--r--Examples/test-suite/go/class_case_runme.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/Examples/test-suite/go/class_case_runme.go b/Examples/test-suite/go/class_case_runme.go
new file mode 100644
index 000000000..7d0870b47
--- /dev/null
+++ b/Examples/test-suite/go/class_case_runme.go
@@ -0,0 +1,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")
+ }
+}