1
0
mirror of https://github.com/golang/go synced 2024-11-16 23:04:44 -07:00
go/test/typeparam/mdempsky
Cuong Manh Le ec2ea40b31 cmd/compile: restrict //go:notinheap to runtime/internal/sys
So it won't be visible outside of runtime package. There are changes to
make tests happy:

 - For test/directive*.go files, using "go:noinline" for testing misplaced
 directives instead.
 - Restrict test/fixedbugs/bug515.go for gccgo only.
 - For test/notinheap{2,3}.go, using runtime/cgo.Incomplete for marking
 the type as not-in-heap. Though it's somewhat clumsy, it's the easiest
 way to keep the test errors for not-in-heap types until we can cleanup
 further.
 - test/typeparam/mdempsky/11.go is about defined type in user code marked
 as go:notinheap, which can't happen after this CL, though.

Fixes #46731

Change-Id: I869f5b2230c8a2a363feeec042e7723bbc416e8e
Reviewed-on: https://go-review.googlesource.com/c/go/+/421882
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2022-09-02 06:22:23 +00:00
..
1.dir
3.dir
4.dir
7.dir
8.dir
10.dir
12.dir
1.go
2.go
3.go
4.go
5.go
6.go
7.go
8.go
9.go
10.go
12.go
13.go
14.go
15.go
16.go
17.go
18.go [dev.unified] test: add regress test for generic select statements 2022-06-29 19:33:57 +00:00
18.out [dev.unified] test: add regress test for generic select statements 2022-06-29 19:33:57 +00:00
19.go test: add test case for type parameter method indexing 2022-08-08 17:39:25 +00:00
20.go test: test method expressions promoted to derived types 2022-08-09 16:42:12 +00:00
21.go cmd/compile: fix devirtualization bug with unified IR 2022-08-18 17:26:32 +00:00