/trunk/Examples/test-suite/go/smart_pointer_multi_typedef_runme.go
# · Go · 20 lines · 16 code · 4 blank · 0 comment · 4 complexity · 339c14097504184e2af0168dd6ae7c74 MD5 · raw file
- package main
- import . "./smart_pointer_multi_typedef"
- func main() {
- f := NewFoo()
- b := NewBar(f)
- s := NewSpam(b)
- g := NewGrok(b)
- s.SetX(3)
- if s.Getx() != 3 {
- panic(0)
- }
- g.SetX(4)
- if g.Getx() != 4 {
- panic(0)
- }
- }