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