/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
- package main
- import . "./smart_pointer_rename"
- func main() {
- f := NewFoo()
- b := NewBar(f)
- if b.Test() != 3 {
- panic(0)
- }
- if b.Ftest1(1) != 1 {
- panic(0)
- }
- if b.Ftest2(2, 3) != 2 {
- panic(0)
- }
- }