aboutsummaryrefslogtreecommitdiff
path: root/libgo/misc/cgo/test/issue29781.go
blob: 0fd8c08b8eb0e41850018005e8deeb813406b4a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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 with newline inserted into constant expression.
// Compilation test only, nothing to run.

package cgotest

// static void issue29781F(char **p, int n) {}
// #define ISSUE29781C 0
import "C"

func issue29781G() {
	var p *C.char
	C.issue29781F(&p, C.ISSUE29781C+1)
}