...

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

Documentation: cmd/cgo/internal/testerrors/testdata

     1  // Copyright 2017 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  // Issue 18452: show pos info in undefined name errors
     6  
     7  package p
     8  
     9  import (
    10  	"C"
    11  	"fmt"
    12  )
    13  
    14  func a() {
    15  	fmt.Println("Hello, world!")
    16  	C.function_that_does_not_exist() // ERROR HERE
    17  	C.pi                             // ERROR HERE
    18  }
    19  

View as plain text