blob: 8a60e74af25eb7d459e16a6d7437adb5da81e8ba [file] [log] [blame]
// { dg-do compile }
// { dg-options "-fgo-debug-optimization" }
package p
func F(m map[string]int, a, b []byte) int {
x := m[string(a)] // { dg-error "no copy string\\(\\\[\\\]byte\\)" }
y, ok := m[string(b)] // { dg-error "no copy string\\(\\\[\\\]byte\\)" }
_ = ok
return x + y
}