github.com/mh-cbon/go@v0.0.0-20160603070303-9e112a3fe4c0/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