mirror of
https://github.com/golang/go
synced 2024-11-13 20:00:23 -07:00
f571518139
Fixes #52611
Change-Id: I835df8d6a98a37482446ec00af768c96fd8ee4fe
GitHub-Last-Rev: ea54dd69ee
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 issue52611b
|
|
|
|
/*
|
|
typedef struct Bar {
|
|
int X;
|
|
} Bar;
|
|
*/
|
|
import "C"
|
|
|
|
func GetX2(bar *C.struct_Bar) int32 {
|
|
return int32(bar.X)
|
|
}
|