GoPLS Viewer

Home|gopls/go/analysis/passes/atomicalign/testdata/src/b/b.go
1// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !arm,!386
6
7package testdata
8
9import (
10    "sync/atomic"
11)
12
13func nonAffectedArchs() {
14    var s struct {
15        _ bool
16        a uint64
17    }
18    atomic.SwapUint64(&s.a9// ok on 64-bit architectures
19}
20
MembersX
atomic
nonAffectedArchs
Members
X