PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Go | 29 lines | 25 code | 4 blank | 0 comment | 10 complexity | 070a2d4c5689f71056575a89c7e86470 MD5 | raw file
 1package main
 2
 3import "multi_import_a"
 4import "multi_import_b"
 5
 6func main() {
 7	x := multi_import_b.NewXXX()
 8	if x.Testx() != 0 {
 9		panic(0)
10	}
11
12	y := multi_import_b.NewYYY()
13	if y.Testx() != 0 {
14		panic(0)
15	}
16	if y.Testy() != 1 {
17		panic(0)
18	}
19
20	z := multi_import_a.NewZZZ()
21	if z.Testx() != 0 {
22		println("z.Testx", z.Testx(), z.Testz())
23		panic(0)
24	}
25	if z.Testz() != 2 {
26		println("z.Testz", z.Testz())
27		panic(0)
28	}
29}