github.com/huandu/go@v0.0.0-20151114150818-04e615e41150/misc/cgo/test/issue8945.go (about)

     1  // Copyright 2014 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  // +build gccgo
     6  
     7  package cgotest
     8  
     9  //typedef void (*PFunc)();
    10  //PFunc success_cb;
    11  import "C"
    12  
    13  //export Test
    14  func Test() {
    15  	_ = C.success_cb
    16  }