Source file src/cmd/link/internal/ld/testdata/issue39256/x.go

     1  // Copyright 2020 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 main
     6  
     7  import (
     8  	_ "unsafe"
     9  )
    10  
    11  //go:cgo_import_dynamic libc_getpid getpid "libc.so"
    12  //go:cgo_import_dynamic libc_kill kill "libc.so"
    13  //go:cgo_import_dynamic libc_close close "libc.so"
    14  //go:cgo_import_dynamic libc_open open "libc.so"
    15  
    16  //go:cgo_import_dynamic _ _ "libc.so"
    17  
    18  func trampoline()
    19  
    20  func main() {
    21  	trampoline()
    22  }
    23  

View as plain text