github.com/bir3/gocompiler@v0.9.2202/src/cmd/cgo/internal/test/issue52611a/a.go (about) 1 // Copyright 2022 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 issue52611a 6 7 /* 8 typedef struct Foo { 9 int X; 10 } Foo; 11 */ 12 import "C" 13 14 func GetX1(foo *C.struct_Foo) int32 { 15 return int32(foo.X) 16 }