/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
1package main 2 3import . "./smart_pointer_rename" 4 5func main() { 6 f := NewFoo() 7 b := NewBar(f) 8 9 if b.Test() != 3 { 10 panic(0) 11 } 12 13 if b.Ftest1(1) != 1 { 14 panic(0) 15 } 16 17 if b.Ftest2(2, 3) != 2 { 18 panic(0) 19 } 20}