github.com/riscv/riscv-go@v0.0.0-20200123204226-124ebd6fcc8e/misc/cgo/test/issue8756.go (about) 1 package cgotest 2 3 /* 4 #cgo LDFLAGS: -lm 5 #include <math.h> 6 */ 7 import "C" 8 import ( 9 "testing" 10 11 "./issue8756" 12 ) 13 14 func test8756(t *testing.T) { 15 issue8756.Pow() 16 C.pow(1, 2) 17 }