github.com/riscv/riscv-go@v0.0.0-20200123204226-124ebd6fcc8e/misc/cgo/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  // Test that we can link together two different cgo packages that both
     6  // use the same libgcc function.
     7  
     8  package cgotest
     9  
    10  import (
    11  	"runtime"
    12  	"testing"
    13  
    14  	"./issue9510a"
    15  	"./issue9510b"
    16  )
    17  
    18  func test9510(t *testing.T) {
    19  	if runtime.GOARCH == "arm" {
    20  		t.Skip("skipping because libgcc may be a Thumb library")
    21  	}
    22  	issue9510a.F(1, 1)
    23  	issue9510b.F(1, 1)
    24  }