Source file misc/cgo/test/testdata/issue8756.go

     1  package cgotest
     2  
     3  /*
     4  #cgo LDFLAGS: -lm
     5  #include <math.h>
     6  */
     7  import "C"
     8  import (
     9  	"testing"
    10  
    11  	"cgotest/issue8756"
    12  )
    13  
    14  func test8756(t *testing.T) {
    15  	issue8756.Pow()
    16  	C.pow(1, 2)
    17  }
    18  

View as plain text