Debian Codegraph @

test/fixedbugs/issue71857.go

raw
1 // run
2
3 // Copyright 2025 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.
6
7 package main
8
9 import "sync/atomic"
10
11 //go:noinline
12 func f(p0, p1, p2, p3, p4, p5, p6, p7 *uint64, a *atomic.Uint64) {
13 old := a.Or(0xaaa)
14 *p0 = old
15 *p1 = old
16 *p2 = old
17 *p3 = old
18 *p4 = old
19 *p5 = old
20 *p6 = old
21 *p7 = old
22 }
23
24 func main() {
25 a := new(atomic.Uint64)
26 p := new(uint64)
27 f(p, p, p, p, p, p, p, p, a)
28
29 }