PageRenderTime 32ms CodeModel.GetById 28ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Go | 14 lines | 11 code | 3 blank | 0 comment | 4 complexity | df4bce1e444948e38372328b905756f3 MD5 | raw file
 1package main
 2
 3import "./ret_by_value"
 4
 5func main() {
 6	a := ret_by_value.Get_test()
 7	if a.GetMyInt() != 100 {
 8		panic(0)
 9	}
10
11	if a.GetMyShort() != 200 {
12		panic(0)
13	}
14}