/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue38359.go
19 строк
318 B
Keith Randall
cmd/compile: prevent constant folding of +/- when result is NaN
10 апр 2020, 22:32
10 апр 2020, 22:32
83e288f
Код
Авторство
О чём код?
// compile // Copyright 2020 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. // Make sure NaN-NaN compiles correctly. package p func f() { var st struct { f float64 _, _ string } f := 1e308 st.f = 2*f - 2*f }