diff options
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/internal/testdir/testdir_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 = "" |
