]> Cypherpunks.ru repositories - gostls13.git/blob - misc/cgo/test/testdata/issue52611a/a.go
cmd/compile/internal/pgo: use slices for in/out edges
[gostls13.git] / misc / cgo / test / testdata / issue52611a / a.go
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 }