1// { dg-do compile }
2// { dg-options "-fgo-debug-optimization" }
3
4package p
5
6func F(m map[string]int, a, b []byte) int {
7	x := m[string(a)]     // { dg-error "no copy string\\(\\\[\\\]byte\\)" }
8	y, ok := m[string(b)] // { dg-error "no copy string\\(\\\[\\\]byte\\)" }
9	_ = ok
10	return x + y
11}
12