Source file src/cmd/cgo/internal/test/issue8756.go

     1  // Copyright 2016 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 cgotest
     6  
     7  /*
     8  #cgo !darwin LDFLAGS: -lm
     9  #include <math.h>
    10  */
    11  import "C"
    12  import (
    13  	"testing"
    14  
    15  	"cmd/cgo/internal/test/issue8756"
    16  )
    17  
    18  func test8756(t *testing.T) {
    19  	issue8756.Pow()
    20  	C.pow(1, 2)
    21  }
    22  

View as plain text