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.
8 extern int *GoFn(int *);
10 // Yes, you can have definitions if you use //export, as long as they are weak.
11 int f(void) __attribute__ ((weak));
24 func GoFn(p *C.int) *C.int {
30 if r := C.f(); r != 1 {