mirror of
https://github.com/golang/go
synced 2024-11-07 13:46:19 -07:00
16 lines
377 B
Go
16 lines
377 B
Go
|
// asmcheck
|
||
|
|
||
|
// Copyright 2018 The Go Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
package codegen
|
||
|
|
||
|
// This file contains code generation tests related to the handling of
|
||
|
// string types.
|
||
|
|
||
|
func CountRunes(s string) int { // Issue #24923
|
||
|
// amd64:`.*countrunes`
|
||
|
return len([]rune(s))
|
||
|
}
|