aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/issue75203.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2026-03-27 16:20:06 -0700
committerGopher Robot <gobot@golang.org>2026-03-31 11:01:13 -0700
commitd6492e284b61c8be4bfce5ee0ca907f4df5deb72 (patch)
tree2dd97ab6ef6c6ae41d93bcbf21e133ec500f79e8 /test/codegen/issue75203.go
parent1673075d4bd324e69cb4e6e58760316e2c84e604 (diff)
downloadgo-d6492e284b61c8be4bfce5ee0ca907f4df5deb72.tar.xz
test/codegen: get rid of \s
Replace \s with a space in backtick-quoted strings Replace \\s with a space in double-quoted strings Change-Id: I0c8b249bb12c2c8ca69e683e4bc6f27544fd6094 Reviewed-on: https://go-review.googlesource.com/c/go/+/760680 Auto-Submit: Keith Randall <khr@google.com> Reviewed-by: Junyang Shao <shaojunyang@google.com> Reviewed-by: Paul Murphy <paumurph@redhat.com> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'test/codegen/issue75203.go')
-rw-r--r--test/codegen/issue75203.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/codegen/issue75203.go b/test/codegen/issue75203.go
index 68e1794120..6ee29b398d 100644
--- a/test/codegen/issue75203.go
+++ b/test/codegen/issue75203.go
@@ -9,14 +9,13 @@ package codegen
import "reflect"
func f() reflect.Type {
- // amd64:`LEAQ\stype:\*int\(SB\)`
- // arm64:`MOVD\s\$type:\*int\(SB\)`
+ // amd64:`LEAQ type:\*int\(SB\)`
+ // arm64:`MOVD \$type:\*int\(SB\)`
return reflect.TypeFor[*int]()
}
func g() reflect.Type {
- // amd64:`LEAQ\stype:int\(SB\)`
- // arm64:`MOVD\s\$type:int\(SB\)`
- return reflect.TypeFor[int]()
+ // amd64:`LEAQ type:int\(SB\)`
+ // arm64:`MOVD \$type:int\(SB\)`
+ return reflect.TypeFor[int]()
}
-