1 Debian patch touch this file
| •1 | //go:build amd64 || amd64p32 || arm64 || ppc64 || ppc64le || mips64 || mips64le || mips64p32 || mips64p32le || s390x || sparc64 || riscv64 || loong64 |
| 2 | // +build amd64 amd64p32 arm64 ppc64 ppc64le mips64 mips64le mips64p32 mips64p32le s390x sparc64 riscv64 loong64 |
| 3 | |
| 4 | package pkg |
| 5 | |
| 6 | import "sync/atomic" |
| 7 | |
| 8 | type T struct { |
| 9 | A int64 |
| 10 | B int32 |
| 11 | C int64 |
| 12 | } |
| 13 | |
| 14 | func fn() { |
| 15 | var v T |
| 16 | atomic.AddInt64(&v.A, 0) |
| 17 | atomic.AddInt64(&v.C, 0) |
| 18 | atomic.LoadInt64(&v.C) |
| 19 | } |