2 // { dg-options "-fgo-debug-optimization" }
6 func F(x
[]byte, y
string) bool {
7 return string(x
) == y
// { dg-error "no copy string\\(\\\[\\\]byte\\)" }
10 func BytesEqual(x
, y
[]byte) bool {
11 return string(x
) == // { dg-error "no copy string\\(\\\[\\\]byte\\)" }
12 string(y
) // { dg-error "no copy string\\(\\\[\\\]byte\\)" }