]> Cypherpunks.ru repositories - gostls13.git/blob - misc/cgo/test/issue9510.go
9bccfeb5e790edc49301165e1a1eeb4913d863d3
[gostls13.git] / misc / cgo / test / issue9510.go
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.
4
5 //go:build cgo
6
7 // Test that we can link together two different cgo packages that both
8 // use the same libgcc function.
9
10 package cgotest
11
12 import (
13         "runtime"
14         "testing"
15
16         "misc/cgo/test/issue9510a"
17         "misc/cgo/test/issue9510b"
18 )
19
20 func test9510(t *testing.T) {
21         if runtime.GOARCH == "arm" {
22                 t.Skip("skipping because libgcc may be a Thumb library")
23         }
24         issue9510a.F(1, 1)
25         issue9510b.F(1, 1)
26 }