summaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/extend_template_runme.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2010-06-10 01:13:31 +0000
committerIan Lance Taylor <iant@google.com>2010-06-10 01:13:31 +0000
commit5af2978f77cad0eec048ba1ea09b07e8ad7abbfa (patch)
tree2a7c8d569dde6570e0a5baa907bb5b3084697a52 /Examples/test-suite/go/extend_template_runme.go
parent09f14197ac1df83e9b428d84782238abec0500bd (diff)
downloadswig-5af2978f77cad0eec048ba1ea09b07e8ad7abbfa.tar.gz
Add support for the Go programming language.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/go/extend_template_runme.go')
-rw-r--r--Examples/test-suite/go/extend_template_runme.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/Examples/test-suite/go/extend_template_runme.go b/Examples/test-suite/go/extend_template_runme.go
new file mode 100644
index 000000000..5adb4b3c2
--- /dev/null
+++ b/Examples/test-suite/go/extend_template_runme.go
@@ -0,0 +1,14 @@
+package main
+
+import "./extend_template"
+
+func main() {
+ f := extend_template.NewFoo_0()
+ if f.Test1(37) != 37 {
+ panic(0)
+ }
+
+ if f.Test2(42) != 42 {
+ panic(0)
+ }
+}