aboutsummaryrefslogtreecommitdiff
path: root/libgo/misc/cgo/test/issue29748.go
blob: 8229b3bcf08d4a5817c1d1c50a97e68ca20608c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2019 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.

// Error handling a struct initializer that requires pointer checking.
// Compilation test only, nothing to run.

package cgotest

// typedef struct { char **p; } S29748;
// static int f29748(S29748 *p) { return 0; }
import "C"

var Vissue29748 = C.f29748(&C.S29748{
	nil,
})

func Fissue299748() {
	C.f29748(&C.S29748{
		nil,
	})
}