diff options
Diffstat (limited to 'misc/cgo/test/gcc68255.go')
-rw-r--r-- | misc/cgo/test/gcc68255.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/cgo/test/gcc68255.go b/misc/cgo/test/gcc68255.go new file mode 100644 index 0000000..7b25e02 --- /dev/null +++ b/misc/cgo/test/gcc68255.go @@ -0,0 +1,17 @@ +// Copyright 2015 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 + +import ( + "testing" + + "misc/cgo/test/gcc68255" +) + +func testGCC68255(t *testing.T) { + if !gcc68255.F() { + t.Error("C global variable was not initialized") + } +} |