mirror of
https://github.com/golang/go.git
synced 2025-05-30 19:52:53 +00:00
Fixes #52611 Change-Id: I835df8d6a98a37482446ec00af768c96fd8ee4fe GitHub-Last-Rev: ea54dd69eef90eaf1641889039344fff70158ece GitHub-Pull-Request: golang/go#52733 Reviewed-on: https://go-review.googlesource.com/c/go/+/404497 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Reviewed-by: Dexter Ouyang <kkhaike@gmail.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Alex Rakoczy <alex@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
17 lines
299 B
Go
17 lines
299 B
Go
// Copyright 2022 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package issue52611a
|
|
|
|
/*
|
|
typedef struct Foo {
|
|
int X;
|
|
} Foo;
|
|
*/
|
|
import "C"
|
|
|
|
func GetX1(foo *C.struct_Foo) int32 {
|
|
return int32(foo.X)
|
|
}
|