aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/go_inout_runme.go
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/go/go_inout_runme.go')
-rw-r--r--Examples/test-suite/go/go_inout_runme.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/Examples/test-suite/go/go_inout_runme.go b/Examples/test-suite/go/go_inout_runme.go
index 2dc5b9908..981b7f2b3 100644
--- a/Examples/test-suite/go/go_inout_runme.go
+++ b/Examples/test-suite/go/go_inout_runme.go
@@ -50,4 +50,12 @@ func main() {
fmt.Println("for c2.M got", pm, "want", want)
panic(pm)
}
+
+ c1 := go_inout.NewC1()
+ c2.M2(c1)
+ c2.M2(nil)
+
+ if !go_inout.Strings([]string{"1", "2"}) {
+ panic("Strings failed")
+ }
}