Source file src/cmd/cgo/internal/test/issue8756/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 issue8756
     6  
     7  /*
     8  #cgo !darwin LDFLAGS: -lm
     9  #include <math.h>
    10  */
    11  import "C"
    12  
    13  func Pow() {
    14  	C.pow(1, 2)
    15  }
    16  

View as plain text