diff options
Diffstat (limited to 'libgo/misc/cgo/errors/err2.go')
-rw-r--r-- | libgo/misc/cgo/errors/err2.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libgo/misc/cgo/errors/err2.go b/libgo/misc/cgo/errors/err2.go new file mode 100644 index 00000000000..3ab410bbaac --- /dev/null +++ b/libgo/misc/cgo/errors/err2.go @@ -0,0 +1,13 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package main + +import "C" + +func main() { + s := "" + _ = s + C.malloc(s) // ERROR HERE +} |