diff options
author | Matthew Dempsky <mdempsky@google.com> | 2017-02-01 12:35:53 -0800 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2017-02-01 22:52:32 +0000 |
commit | a27b78141b85d3b9733647de3f3863977d2f9f81 (patch) | |
tree | a7dd01855ea12cecd00f99a1fe164b0c75c2ac3d /test/notinheap.go | |
parent | bb41b4d599f5758e25091666e123c41b401ac890 (diff) | |
download | go-a27b78141b85d3b9733647de3f3863977d2f9f81.tar.gz go-a27b78141b85d3b9733647de3f3863977d2f9f81.zip |
cmd/compile/internal/gc: inline typedcl0 and typedcl1
It's easier to understand what's happening after inlining these into
noder.typeDecl.
Change-Id: I7beed5a1e18047bf09f2d4ddf64b9646c324d8d6
Reviewed-on: https://go-review.googlesource.com/36111
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'test/notinheap.go')
-rw-r--r-- | test/notinheap.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/notinheap.go b/test/notinheap.go index c3fdfd6daa..44b79646ef 100644 --- a/test/notinheap.go +++ b/test/notinheap.go @@ -13,15 +13,15 @@ type nih struct{} // Types embedding notinheap types must be notinheap. -type embed1 struct { +type embed1 struct { // ERROR "must be go:notinheap" x nih -} // ERROR "must be go:notinheap" +} type embed2 [1]nih // ERROR "must be go:notinheap" -type embed3 struct { +type embed3 struct { // ERROR "must be go:notinheap" x [1]nih -} // ERROR "must be go:notinheap" +} type embed4 map[nih]int // ERROR "go:notinheap map key not allowed" |