aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/fmtmap_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2020-11-26 07:02:13 -0500
committerRuss Cox <rsc@golang.org>2020-11-30 19:45:21 +0000
commit4e7685ef1afbf8b1cc692f2a1bd3b02e444d5901 (patch)
treefce848f0c9f3bbe23e596b86a199f9968e7159b0 /src/cmd/compile/fmtmap_test.go
parentd40869fcedb208b0bcf7e7d828db12f210a17dc6 (diff)
downloadgo-4e7685ef1afbf8b1cc692f2a1bd3b02e444d5901.tar.xz
[dev.regabi] cmd/compile: add custom type syntax Node implementations
The type syntax is reused to stand in for the actual type once typechecked, to avoid updating all the possible references to the original type syntax. So all these implementations allow changing their Op from the raw syntax like OTMAP to the finished form OTYPE, even though obviously the representation does not change. Passes buildall w/ toolstash -cmp. Change-Id: I4acca1a5b35fa2f48ee08e8f1e5a330a004c284b Reviewed-on: https://go-review.googlesource.com/c/go/+/274103 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/fmtmap_test.go')
-rw-r--r--src/cmd/compile/fmtmap_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/fmtmap_test.go b/src/cmd/compile/fmtmap_test.go
index e949a89d93..32891aea66 100644
--- a/src/cmd/compile/fmtmap_test.go
+++ b/src/cmd/compile/fmtmap_test.go
@@ -95,6 +95,7 @@ var knownFormats = map[string]string{
"cmd/compile/internal/ir.Nodes %+v": "",
"cmd/compile/internal/ir.Nodes %.v": "",
"cmd/compile/internal/ir.Nodes %v": "",
+ "cmd/compile/internal/ir.Ntype %v": "",
"cmd/compile/internal/ir.Op %#v": "",
"cmd/compile/internal/ir.Op %v": "",
"cmd/compile/internal/ssa.BranchPrediction %d": "",