projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
honnef.co
/
go
/
tools@v0.0.1-2020.1.5
/
staticcheck
/
testdata
/
src
/
CheckAtomicAlignment
/
atomic64.go
1
// +build amd64 amd64p32 arm64 ppc64 ppc64le mips64 mips64le mips64p32 mips64p32le sparc64
2
3
package pkg
4
5
import "sync/atomic"
6
7
type T struct {
8
A int64
9
B int32
10
C int64
11
}
12
13
func fn() {
14
var v T
15
atomic.AddInt64(&v.A, 0)
16
atomic.AddInt64(&v.C, 0)
17
atomic.LoadInt64(&v.C)
18
}