Debian Codegraph @

go/analysis/passes/copylock/testdata/src/a/newexpr_go126.go

raw symbols SCIP
1 // Copyright 2025 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 //go:build go1.26
6
7 package a
8
9 import "sync"
10
11 func _(ptr *sync.Mutex) {
12 _ = new(sync.Mutex)
13 _ = new(*ptr) // want `call of new copies lock value: sync.Mutex`
14 )