PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Go | 20 lines | 15 code | 5 blank | 0 comment | 6 complexity | 42a85347b2d2878f71686400c500da39 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. package main
  2. import . "./smart_pointer_rename"
  3. func main() {
  4. f := NewFoo()
  5. b := NewBar(f)
  6. if b.Test() != 3 {
  7. panic(0)
  8. }
  9. if b.Ftest1(1) != 1 {
  10. panic(0)
  11. }
  12. if b.Ftest2(2, 3) != 2 {
  13. panic(0)
  14. }
  15. }