issue9510.go 525 B

123456789101112131415161718192021222324
  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. // Test that we can link together two different cgo packages that both
  5. // use the same libgcc function.
  6. package cgotest
  7. import (
  8. "runtime"
  9. "testing"
  10. "cgotest/issue9510a"
  11. "cgotest/issue9510b"
  12. )
  13. func test9510(t *testing.T) {
  14. if runtime.GOARCH == "arm" {
  15. t.Skip("skipping because libgcc may be a Thumb library")
  16. }
  17. issue9510a.F(1, 1)
  18. issue9510b.F(1, 1)
  19. }