12 lines
190 B
Go
12 lines
190 B
Go
package main
|
|
|
|
import "swigtests/memberin_extend_c"
|
|
|
|
func main() {
|
|
t := memberin_extend_c.NewPerson()
|
|
t.SetName("Fred Bloggs")
|
|
if t.GetName() != "FRED BLOGGS" {
|
|
panic("name wrong")
|
|
}
|
|
}
|