]> Cypherpunks.ru repositories - gostls13.git/blob - misc/cgo/test/testdata/issue52611b/b.go
cmd/compile/internal/pgo: use slices for in/out edges
[gostls13.git] / misc / cgo / test / testdata / issue52611b / b.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 issue52611b
6
7 /*
8 typedef struct Bar {
9     int X;
10 } Bar;
11 */
12 import "C"
13
14 func GetX2(bar *C.struct_Bar) int32 {
15         return int32(bar.X)
16 }