PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1package main
 2
 3import . "./smart_pointer_multi_typedef"
 4
 5func main() {
 6	f := NewFoo()
 7	b := NewBar(f)
 8	s := NewSpam(b)
 9	g := NewGrok(b)
10
11	s.SetX(3)
12	if s.Getx() != 3 {
13		panic(0)
14	}
15
16	g.SetX(4)
17	if g.Getx() != 4 {
18		panic(0)
19	}
20}