diff options
author | Keith Randall <khr@golang.org> | 2021-07-24 14:11:27 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2021-07-24 22:49:24 +0000 |
commit | b27c7e30dc5d222766057e62c16cb765b636d244 (patch) | |
tree | 44c9e86c068a2f8e5e8d5a387693502a15e39788 /test/typeparam/dottype.out | |
parent | a2e2b0362bb2e7b93de668007027d08888bc9a38 (diff) | |
download | go-b27c7e30dc5d222766057e62c16cb765b636d244.tar.gz go-b27c7e30dc5d222766057e62c16cb765b636d244.zip |
[dev.typeparams] cmd/compile: fix HasShape, add dottype test
HasShape needs a TINTER case.
Add a test for x.(T) in various situations. Needs the fix above.
Also remove ONEW unshapify case. It is ok for ONEW to have a shape
type, as it will just be passed to mallocgc, or possibly used as a
stack object type, both of which are ok.
Change-Id: Ibddf8f5c8c254d32cb5ebcaca7dc94b4c00ab893
Reviewed-on: https://go-review.googlesource.com/c/go/+/337231
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
Diffstat (limited to 'test/typeparam/dottype.out')
-rw-r--r-- | test/typeparam/dottype.out | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/typeparam/dottype.out b/test/typeparam/dottype.out new file mode 100644 index 0000000000..058c923a5c --- /dev/null +++ b/test/typeparam/dottype.out @@ -0,0 +1,8 @@ +3 +3 true +0 false +3 +3 true +0 false +3 +3 |