Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
go.dg
/
mapclear.go
blob: a3bebe48efad7ae9ab87c11aac1fb646afeebdc7 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-fgo-debug-optimization" }
package p
func clear(m map[int]int) {
for k := range m {
// { dg-error "map range clear" }
delete(m, k)
}
}