Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / go.dg / cmpstring.go
blob81d8aee379d8f5693612fc02e351d9dd3365a4a8
1 // { dg-do compile }
2 // { dg-options "-fgo-debug-optimization" }
4 package p
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\\)" }