libgo/misc/cgo/test/testdata/issue41761.go
raw| 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 S S; |
| 9 | */ |
| 10 | import "C" |
| 11 | |
| 12 | import ( |
| 13 | "cgotest/issue41761a" |
| 14 | "testing" |
| 15 | ) |
| 16 | |
| 17 | func test41761(t *testing.T) { |
| 18 | var x issue41761a.T |
| 19 | _ = (*C.struct_S)(x.X) |
| 20 | } |