summaryrefslogtreecommitdiff
path: root/src/pkg/go/build/cgotest/cgotest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/go/build/cgotest/cgotest.c')
-rw-r--r--src/pkg/go/build/cgotest/cgotest.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pkg/go/build/cgotest/cgotest.c b/src/pkg/go/build/cgotest/cgotest.c
new file mode 100644
index 000000000..b13acb227
--- /dev/null
+++ b/src/pkg/go/build/cgotest/cgotest.c
@@ -0,0 +1,9 @@
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+int
+Add(int x, int y, int *sum)
+{
+ sum = x+y;
+}