Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5216)

Unified Diff: misc/cgo/testshared/mainmult.c

Issue 9738047: code review 9738047: runtime: Add shared library support (linux/amd64)
Patch Set: diff -r 3833ddddde2b1a2741a396c4e965b04d525a133b https://go.googlecode.com/hg/ Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « misc/cgo/testshared/mainadv.c ('k') | misc/cgo/testshared/shared.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: misc/cgo/testshared/mainmult.c
===================================================================
new file mode 100644
--- /dev/null
+++ b/misc/cgo/testshared/mainmult.c
@@ -0,0 +1,14 @@
+// Copyright 2013 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.
+
+#include <stdio.h>
+
+extern int Go_callback(void);
+extern int Go_callback2(void);
+
+int main() {
+ Go_callback();
+ Go_callback2();
+ return 0;
+}
« no previous file with comments | « misc/cgo/testshared/mainadv.c ('k') | misc/cgo/testshared/shared.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b