...

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

Documentation: cmd/cgo/internal/testerrors/testdata

     1  // Copyright 2024 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 p
     6  
     7  import "C"
     8  
     9  func F() *C.char {
    10  	s, err := C.CString("hi") // ERROR HERE: no two-result form
    11  	if err != nil {
    12  		println(err)
    13  	}
    14  	return s
    15  }
    16  

View as plain text