3 // Copyright 2019 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.
7 // Make sure we don't introduce write barriers where we
8 // don't need them. These cases are writing pointers to
9 // globals to zeroed memory.
18 return []string{"a", "b"}
65 // This offset is too large: we only track the first 64 pointers for zeroness.
66 u.a[64] = &g // ERROR "write barrier"