1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Test that it's OK to have C code that does nothing other than 6 // initialize a global variable. This used to fail with gccgo. 7 8 package gcc68255 9 10 /* 11 #include "c.h" 12 */ 13 import "C" 14 15 func F() bool { 16 return C.v != nil 17 } 18