github.com/bir3/gocompiler@v0.9.2202/src/cmd/cgo/internal/test/issue41761.go (about)

     1  // Copyright 2020 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  package cgotest
     6  
     7  /*
     8     typedef struct S41761 S41761;
     9  */
    10  import "C"
    11  
    12  import (
    13  	"github.com/bir3/gocompiler/src/cmd/cgo/internal/test/issue41761a"
    14  	"testing"
    15  )
    16  
    17  func test41761(t *testing.T) {
    18  	var x issue41761a.T
    19  	_ = (*C.struct_S41761)(x.X)
    20  }