blob: a3bebe48efad7ae9ab87c11aac1fb646afeebdc7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// { 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)
}
}
|