libgo/misc/cgo/testgodefs/testdata/issue8478.go
raw| 1 | // Copyright 2014 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 | // +build ignore |
| 6 | |
| 7 | package main |
| 8 | |
| 9 | // Issue 8478. Test that void* is consistently mapped to *byte. |
| 10 | |
| 11 | /* |
| 12 | typedef struct { |
| 13 | void *p; |
| 14 | void **q; |
| 15 | void ***r; |
| 16 | } s; |
| 17 | */ |
| 18 | import "C" |
| 19 | |
| 20 | type Issue8478 C.s |