mirror of
https://github.com/golang/go
synced 2024-11-15 10:40:35 -07:00
76a2c87a2c
In the rare case when a cgo type makes it into an object file, we need the go:notinheap annotation to go with it. Fixes #41432. Change-Id: Ie2ef241ee49661792e0d8c8c46c51b2fe5c6fa7c Reviewed-on: https://go-review.googlesource.com/c/go/+/259300 Trust: Keith Randall <khr@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
15 lines
248 B
Go
15 lines
248 B
Go
// Copyright 2020 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 issue41761a
|
|
|
|
/*
|
|
typedef struct S S;
|
|
*/
|
|
import "C"
|
|
|
|
type T struct {
|
|
X *C.S
|
|
}
|