Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/go/template_inherit_runme.go
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

73 lines
863 B
Go

package main
import . "./template_inherit"
func main() {
a := NewFooInt()
b := NewFooDouble()
c := NewBarInt()
d := NewBarDouble()
e := NewFooUInt()
f := NewBarUInt()
if a.Blah() != "Foo" {
panic(0)
}
if b.Blah() != "Foo" {
panic(0)
}
if e.Blah() != "Foo" {
panic(0)
}
if c.Blah() != "Bar" {
panic(0)
}
if d.Blah() != "Bar" {
panic(0)
}
if f.Blah() != "Bar" {
panic(0)
}
if c.Foomethod() != "foomethod" {
panic(0)
}
if d.Foomethod() != "foomethod" {
panic(0)
}
if f.Foomethod() != "foomethod" {
panic(0)
}
if Invoke_blah_int(a) != "Foo" {
panic(0)
}
if Invoke_blah_int(c) != "Bar" {
panic(0)
}
if Invoke_blah_double(b) != "Foo" {
panic(0)
}
if Invoke_blah_double(d) != "Bar" {
panic(0)
}
if Invoke_blah_uint(e) != "Foo" {
panic(0)
}
if Invoke_blah_uint(f) != "Bar" {
panic(0)
}
}