From 1582ad41058df1092eaed9dec4d97b7856953ade Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Fri, 27 Mar 2026 17:14:43 -0700 Subject: test/codegen: fix some unbalanced quotes Change-Id: I081da8c79f0264118e079af21ff58c511ae37e6c Reviewed-on: https://go-review.googlesource.com/c/go/+/760682 Reviewed-by: Junyang Shao LUCI-TryBot-Result: Go LUCI Reviewed-by: Joel Sing Reviewed-by: Keith Randall Auto-Submit: Keith Randall --- src/cmd/internal/testdir/testdir_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cmd/internal') diff --git a/src/cmd/internal/testdir/testdir_test.go b/src/cmd/internal/testdir/testdir_test.go index e4d5b5d70b..18891f0081 100644 --- a/src/cmd/internal/testdir/testdir_test.go +++ b/src/cmd/internal/testdir/testdir_test.go @@ -1683,6 +1683,8 @@ func (t test) wantedAsmOpcodes(fn string) asmChecks { tail := comment[lastUsed:] if possibleOpcodeRx.MatchString(tail) { t.Errorf("%s:%d: possible unused assembly pattern: %v", t.goFileName(), i+1, tail) + } else if strings.Count(comment, "\"")%2 != 0 || strings.Count(comment, "`")%2 != 0 { + t.Errorf("%s:%d: unbalanced quotes: %v", t.goFileName(), i+1, comment) } } comment = "" -- cgit v1.3-6-g1900