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