2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2013 The Go Authors. All rights reserved.
|
2013-10-18 14:52:44 -06:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2013-09-03 22:15:15 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
/*
|
2018-02-01 12:07:21 -07:00
|
|
|
#cgo LDFLAGS: -L/nonexist
|
2013-09-03 22:15:15 -06:00
|
|
|
|
|
|
|
void test() {
|
2013-10-18 14:52:44 -06:00
|
|
|
xxx; // ERROR HERE
|
2013-09-03 22:15:15 -06:00
|
|
|
}
|
2019-05-16 08:00:10 -06:00
|
|
|
|
|
|
|
// Issue 8442. Cgo output unhelpful error messages for
|
|
|
|
// invalid C preambles.
|
|
|
|
void issue8442foo(UNDEF*); // ERROR HERE
|
2013-09-03 22:15:15 -06:00
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
C.test()
|
|
|
|
}
|