...

Source file src/cmd/cgo/internal/testerrors/testdata/notmatchedcfunction.go

Documentation: cmd/cgo/internal/testerrors/testdata

     1  // Copyright 2023 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  /*
     8  // TODO(#56378): change back to "#cgo noescape noMatchedCFunction: no matched C function" in Go 1.23
     9  // ERROR MESSAGE: #cgo noescape disabled until Go 1.23
    10  #cgo noescape noMatchedCFunction
    11  */
    12  import "C"
    13  
    14  func main() {
    15  }
    16  

View as plain text