]> Cypherpunks.ru repositories - gostls13.git/blob - src/cmd/cgo/internal/test/issue29563/weak.go
misc/cgo/test: add cgo build constraints
[gostls13.git] / src / cmd / cgo / internal / test / 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 }