Source file misc/cgo/test/testdata/issue29563/weak.go
1 // Copyright 2019 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 package issue29563 6 7 //int foo1(); 8 //int foo2(); 9 import "C" 10 11 func Bar() int { 12 return int(C.foo1()) + int(C.foo2()) 13 } 14