github.com/bir3/gocompiler@v0.9.2202/src/cmd/cgo/internal/test/issue9510.go (about)

     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  	"github.com/bir3/gocompiler/src/cmd/cgo/internal/test/issue9510a"
    17  	"github.com/bir3/gocompiler/src/cmd/cgo/internal/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  }