3 // Copyright 2014 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Issue 8325: corrupted byte operations during optimization
12 const alphanum = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
15 var bytes = []byte{10, 20, 30, 40, 50}
17 for i, b := range bytes {
18 bytes[i] = alphanum[b%byte(len(alphanum))]
21 for _, b := range bytes {
23 case '0' <= b && b <= '9',
26 println("found a bad character", string(b))