summaryrefslogtreecommitdiff
path: root/misc/cgo/test/empty.go
blob: daa74854921ee20e8be796537ea768c0fa298f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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

/*
#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()
}