* tree-vect-loop-manip.c (vect_do_peeling): Do not use
[official-gcc.git] / libgo / misc / cgo / test / issue6390.go
blob5642899c587c566d73a122cdbcd5d3cd60c21535
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.
5 package cgotest
7 // #include <stdlib.h>
8 import "C"
10 import "testing"
12 func test6390(t *testing.T) {
13 p1 := C.malloc(1024)
14 if p1 == nil {
15 t.Fatalf("C.malloc(1024) returned nil")
17 p2 := C.malloc(0)
18 if p2 == nil {
19 t.Fatalf("C.malloc(0) returned nil")
21 C.free(p1)
22 C.free(p2)