err1.go 404 B

12345678910111213141516171819202122
  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. package main
  5. /*
  6. #cgo LDFLAGS: -L/nonexist
  7. void test() {
  8. xxx; // ERROR HERE
  9. }
  10. // Issue 8442. Cgo output unhelpful error messages for
  11. // invalid C preambles.
  12. void issue8442foo(UNDEF*); // ERROR HERE
  13. */
  14. import "C"
  15. func main() {
  16. C.test()
  17. }