a.go 378 B

1234567891011121314151617
  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. // Test that it's OK to have C code that does nothing other than
  5. // initialize a global variable. This used to fail with gccgo.
  6. package gcc68255
  7. /*
  8. #include "c.h"
  9. */
  10. import "C"
  11. func F() bool {
  12. return C.v != nil
  13. }