/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue71759.go
20 строк
367 B
Keith Randall
cmd/compile: fix sign extension of paired 32-bit loads on arm64
15 фев 2025, 18:53
15 фев 2025, 18:53
beac2f7
Код
Авторство
О чём код?
// run // Copyright 2025 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main //go:noinline func f(p *[2]int32) (int64, int64) { return int64(p[0]), int64(p[1]) } func main() { p := [2]int32{-1, -1} x, y := f(&p) if x != -1 || y != -1 { println(x, y) } }