blob: f3fc45fc92d4b2c6bea0899beb18be74223ab086 [file] [log] [blame]
// compile
// Copyright 2026 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Issue 77435: compiler crash on clear of map resulting
// from a map lookup (or some other syntax that is
// non-idempotent during walk).
package p
func f(s map[int]map[int]int) {
clear(s[0])
}