github.com/stingnevermore/go@v0.0.0-20180120041312-3810f5bfed72/misc/cgo/test/issue19832.go (about) 1 // Copyright 2015 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 // Issue 19832. Functions taking a pointer typedef were being expanded and triggering a compiler error. 6 7 package cgotest 8 9 // typedef struct { int i; } *PS; 10 // void T19832(PS p) {} 11 import "C" 12 import "testing" 13 14 func test19832(t *testing.T) { 15 C.T19832(nil) 16 }