Debian Codegraph @

test/codegen/issue66585.go

raw
1 // asmcheck
2
3 // Copyright 2024 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package codegen
8
9 var x = func() int {
10 n := 0
11 f(&n)
12 return n
13 }()
14
15 func f(p *int) {
16 *p = 1
17 }
18
19 var y = 1
20
21 // z can be static initialized.
22 //
23 // amd64:-"MOVQ"
24 var z = y