aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/string.go
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/string.go')
-rw-r--r--testdata/string.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/testdata/string.go b/testdata/string.go
index 1c5ce6300..7eb90173c 100644
--- a/testdata/string.go
+++ b/testdata/string.go
@@ -17,8 +17,11 @@ func testRunesToString(r []rune) {
println("string from runes:", string(r))
}
+type myString string
+
func main() {
testRangeString()
testStringToRunes()
testRunesToString([]rune{97, 98, 99, 252, 162, 8364, 66376, 176, 120})
+ var _ = len([]byte(myString("foobar"))) // issue 1246
}