issue41761.go 342 B

1234567891011121314151617181920
  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. package cgotest
  5. /*
  6. typedef struct S S;
  7. */
  8. import "C"
  9. import (
  10. "cgotest/issue41761a"
  11. "testing"
  12. )
  13. func test41761(t *testing.T) {
  14. var x issue41761a.T
  15. _ = (*C.struct_S)(x.X)
  16. }