Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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)
}
}