| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/go/src/cmd/link/internal/ld/testdata/issue25459/a/ |
Upload File : |
package a
const Always = true
var Count int
type FuncReturningInt func() int
var PointerToConstIf FuncReturningInt
func ConstIf() int {
if Always {
return 1
}
var imdead [4]int
imdead[Count] = 1
return imdead[0]
}
func CallConstIf() int {
Count += 3
return ConstIf()
}
func Another() {
defer func() { PointerToConstIf = ConstIf; Count += 1 }()
}