diff options
Diffstat (limited to 'src/sync')
| -rw-r--r-- | src/sync/atomic/type.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sync/atomic/type.go b/src/sync/atomic/type.go index f7b8f5a3b7..87c98b1e77 100644 --- a/src/sync/atomic/type.go +++ b/src/sync/atomic/type.go @@ -35,6 +35,10 @@ func b32(b bool) uint32 { return 0 } +// For testing *Pointer[T]'s methods can be inlined. +// Keep in sync with cmd/compile/internal/test/inl_test.go:TestIntendedInlining. +var _ = &Pointer[int]{} + // A Pointer is an atomic pointer of type *T. The zero value is a nil *T. type Pointer[T any] struct { _ noCopy |
