mirror of
https://github.com/golang/go
synced 2024-11-23 14:40:02 -07:00
4e61c516f4
Port of https://golang.org/cl/154360045 to Git. Original author is Xia Bin <snyh@snyh.org> (already a contributor). Fixes #8945. Change-Id: I28bcaf3348794202ca59fbc3466bd7b9670030e4 Reviewed-on: https://go-review.googlesource.com/11658 Reviewed-by: Ian Lance Taylor <iant@golang.org>
17 lines
302 B
Go
17 lines
302 B
Go
// Copyright 2014 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.
|
|
|
|
// +build gccgo
|
|
|
|
package cgotest
|
|
|
|
//typedef void (*PFunc)();
|
|
//PFunc success_cb;
|
|
import "C"
|
|
|
|
//export Test
|
|
func Test() {
|
|
_ = C.success_cb
|
|
}
|