]> Cypherpunks.ru repositories - gostls13.git/blob - misc/cgo/test/issue24161res/restype.go
cb33f3c8aa36e16a5a5c7ed11ca2b4895bf7877d
[gostls13.git] / misc / cgo / test / issue24161res / restype.go
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.
4
5 //go:build darwin
6 // +build darwin
7
8 package issue24161res
9
10 /*
11 #cgo LDFLAGS: -framework CoreFoundation
12 #include <CoreFoundation/CoreFoundation.h>
13 */
14 import "C"
15 import (
16         "reflect"
17         "testing"
18 )
19
20 func Test(t *testing.T) {
21         if k := reflect.TypeOf(C.CFArrayCreate(0, nil, 0, nil)).Kind(); k != reflect.Uintptr {
22                 t.Fatalf("bad kind %s\n", k)
23         }
24 }