* tree-vect-loop-manip.c (vect_do_peeling): Do not use
[official-gcc.git] / libgo / misc / cgo / test / issue18126.go
blobac94a66aab74536a6fb07754e17489216bdd5187
1 // Copyright 2016 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.
5 // Issue 18126: cgo check of void function returning errno.
7 package cgotest
9 /*
10 #include <stdlib.h>
12 void Issue18126C(void **p) {
15 import "C"
17 import (
18 "testing"
21 func test18126(t *testing.T) {
22 p := C.malloc(1)
23 _, err := C.Issue18126C(&p)
24 C.free(p)
25 _ = err