Home | History | Annotate | Download | only in src
      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