PageRenderTime 25ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/test-suite/go/inherit_missing_runme.go

#
Go | 26 lines | 20 code | 6 blank | 0 comment | 6 complexity | 49e522980f07d46cb4f0f2a3b8654a45 MD5 | raw file
 1package main
 2
 3import "./inherit_missing"
 4
 5func main() {
 6	a := inherit_missing.New_Foo()
 7	b := inherit_missing.NewBar()
 8	c := inherit_missing.NewSpam()
 9
10	x := inherit_missing.Do_blah(a)
11	if x != "Foo::blah" {
12		panic(x)
13	}
14
15	x = inherit_missing.Do_blah(b)
16	if x != "Bar::blah" {
17		panic(x)
18	}
19
20	x = inherit_missing.Do_blah(c)
21	if x != "Spam::blah" {
22		panic(x)
23	}
24
25	inherit_missing.Delete_Foo(a)
26}