diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2019-05-28 14:50:53 -0700 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2019-05-29 21:31:37 +0000 |
| commit | 913d290402dfacabd2ec2b4d9ff7faef218eb02c (patch) | |
| tree | f4f39a819a3a6b27ee893cabf75154be26899f7b /src/cmd/compile/internal/gc/class_string.go | |
| parent | 5d0d87ae1659807909da9d97ed1da77d7544d30c (diff) | |
| download | go-git-913d290402dfacabd2ec2b4d9ff7faef218eb02c.tar.gz | |
cmd/compile: sort OAS2* declarations
Change-Id: Idd3acf5f808705c608cd4e5877bc93e1626d9a58
Reviewed-on: https://go-review.googlesource.com/c/go/+/179238
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/gc/class_string.go')
| -rw-r--r-- | src/cmd/compile/internal/gc/class_string.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/gc/class_string.go b/src/cmd/compile/internal/gc/class_string.go index 8980777333..7dc6a15a18 100644 --- a/src/cmd/compile/internal/gc/class_string.go +++ b/src/cmd/compile/internal/gc/class_string.go @@ -4,6 +4,20 @@ package gc import "strconv" +func _() { + // An "invalid array index" compiler error signifies that the constant values have changed. + // Re-run the stringer command to generate them again. + var x [1]struct{} + _ = x[Pxxx-0] + _ = x[PEXTERN-1] + _ = x[PAUTO-2] + _ = x[PAUTOHEAP-3] + _ = x[PPARAM-4] + _ = x[PPARAMOUT-5] + _ = x[PFUNC-6] + _ = x[PDISCARD-7] +} + const _Class_name = "PxxxPEXTERNPAUTOPAUTOHEAPPPARAMPPARAMOUTPFUNCPDISCARD" var _Class_index = [...]uint8{0, 4, 11, 16, 25, 31, 40, 45, 53} |
