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

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

Issue 114990044: code review 114990044: undo CL 109640045 / f97fb06525e5 (Closed)
Patch Set: diff -r f97fb06525e5 https://code.google.com/p/go Created 10 years, 8 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/empty.go
===================================================================
deleted file mode 100644
--- a/misc/cgo/test/empty.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// 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
-
-/*
-#cgo CFLAGS: -Werror=unused-variable
-void funcWithoutAnyParams() {}
-*/
-import "C"
-
-// Only test whether this can be compiled, unused
-// variable (e.g. empty gcc strut) could cause
-// warning/error under stricter CFLAGS.
-func testEmptyGccStruct() {
- C.funcWithoutAnyParams()
-}
« 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