libgo: update to Go 1.11
[official-gcc.git] / libgo / misc / cgo / test / issue24161res / restype.go
blobe5719f22a401a0a9839b1201e10db9e16664b6f8
1 // Copyright 2018 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 // +build darwin
7 package issue24161res
9 /*
10 #cgo LDFLAGS: -framework CoreFoundation
11 #include <CoreFoundation/CoreFoundation.h>
13 import "C"
14 import (
15 "reflect"
16 "testing"
19 func Test(t *testing.T) {
20 if k := reflect.TypeOf(C.CFArrayCreate(0, nil, 0, nil)).Kind(); k != reflect.Uintptr {
21 t.Fatalf("bad kind %s\n", k)