3 // Copyright 2020 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
9 type T struct { // big enough to be an unSSAable type
13 func f(x interface{}, p *int) {
14 _ = *p // trigger nil check here, removing it from below
15 switch x := x.(type) {
17 // Zero twice, so one of them will be removed by the deadstore pass
19 *p = 0 // store op to prevent Zero ops from being optimized by the earlier opt pass rewrite rules