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

Unified Diff: misc/cgo/test/issue8420.go

Issue 121550043: cmd/cgo: suppress "unused variable" warnings in generat...
Patch Set: diff -r 58026885ac66 https://code.google.com/p/go Created 9 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 | « no previous file | src/cmd/cgo/out.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: misc/cgo/test/issue8420.go
===================================================================
new file mode 100644
--- /dev/null
+++ b/misc/cgo/test/issue8420.go
@@ -0,0 +1,18 @@
+// Copyright 2014 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.
+
+package cgotest
+
+// Issue 8420. Cgo generated source code does not compile
+// with -Werror=unused-variable.
+
+/*
+#cgo CFLAGS: -Werror=unused-variable
+void test8420() {}
+*/
+import "C"
+
+func issue8420() {
+ C.test8420()
+}
« no previous file with comments | « no previous file | src/cmd/cgo/out.go » ('j') | no next file with comments »

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