...

Source file src/cmd/cgo/internal/testgodefs/testdata/issue8478.go

Documentation: cmd/cgo/internal/testgodefs/testdata

     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  //go: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
    21  

View as plain text