1// { dg-do compile }
2// { dg-options "-fgo-debug-optimization" }
3
4package p
5
6func clear(m map[int]int) {
7	for k := range m { // { dg-error "map range clear" }
8		delete(m, k)
9	}
10}
11