PageRenderTime 43ms CodeModel.GetById 19ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. package main
  2. import "./ret_by_value"
  3. func main() {
  4. a := ret_by_value.Get_test()
  5. if a.GetMyInt() != 100 {
  6. panic(0)
  7. }
  8. if a.GetMyShort() != 200 {
  9. panic(0)
  10. }
  11. }