github.com/mdempsky/go@v0.0.0-20151201204031-5dd372bd1e70/misc/cgo/testgodefs/issue8478.go (about)

     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