PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

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

#
Go | 47 lines | 42 code | 5 blank | 0 comment | 0 complexity | 8b47198d73269bc34123122cf42e3884 MD5 | raw file
 1package main
 2
 3import "./extend_placement"
 4
 5func main() {
 6	foo := extend_placement.NewFoo()
 7	foo = extend_placement.NewFoo(1)
 8	foo = extend_placement.NewFoo(1, 1)
 9	foo.Spam()
10	foo.Spam("hello")
11	foo.Spam(1)
12	foo.Spam(1, 1)
13	foo.Spam(1, 1, 1)
14	foo.Spam(extend_placement.NewFoo())
15	foo.Spam(extend_placement.NewFoo(), 1.0)
16
17	bar := extend_placement.NewBar()
18	bar = extend_placement.NewBar(1)
19	bar.Spam()
20	bar.Spam("hello")
21	bar.Spam(1)
22	bar.Spam(1, 1)
23	bar.Spam(1, 1, 1)
24	bar.Spam(extend_placement.NewBar())
25	bar.Spam(extend_placement.NewBar(), 1.0)
26
27	footi := extend_placement.NewFooTi()
28	footi = extend_placement.NewFooTi(1)
29	footi = extend_placement.NewFooTi(1, 1)
30	footi.Spam()
31	footi.Spam("hello")
32	footi.Spam(1)
33	footi.Spam(1, 1)
34	footi.Spam(1, 1, 1)
35	footi.Spam(extend_placement.NewFoo())
36	footi.Spam(extend_placement.NewFoo(), 1.0)
37
38	barti := extend_placement.NewBarTi()
39	barti = extend_placement.NewBarTi(1)
40	barti.Spam()
41	barti.Spam("hello")
42	barti.Spam(1)
43	barti.Spam(1, 1)
44	barti.Spam(1, 1, 1)
45	barti.Spam(extend_placement.NewBar())
46	barti.Spam(extend_placement.NewBar(), 1.0)
47}