/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

  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. }