Source file misc/cgo/errors/testdata/err1.go

     1  // Copyright 2013 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  #cgo LDFLAGS: -L/nonexist
     9  
    10  void test() {
    11  	xxx;		// ERROR HERE
    12  }
    13  
    14  // Issue 8442.  Cgo output unhelpful error messages for
    15  // invalid C preambles.
    16  void issue8442foo(UNDEF*); // ERROR HERE
    17  */
    18  import "C"
    19  
    20  func main() {
    21  	C.test()
    22  }
    23  

View as plain text