/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue18994.go
22 строки
399 B
Cherry Zhang
cmd/compile: handle DOT STRUCTLIT for zero-valued struct in SSA
09 фев 2017, 00:01
09 фев 2017, 00:01
a146dd3
Код
Авторство
О чём код?
// run // Copyright 2017 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. // Issue 18994: SSA didn't handle DOT STRUCTLIT for zero-valued // STRUCTLIT. package main // large struct - not SSA-able type T struct { a, b, c, d, e, f, g, h int } func main() { x := T{}.a if x != 0 { panic("FAIL") } }