tools/go/ssa/interp/testdata
Alan Donovan 6db8a00c75 go.tools/go/ssa: write zero value when storing a composite literal in-place if necessary
Previously, statements such as:

type T struct { a, b int }
[...]
x = T{}
x = T{b: 1}

would only affect the aggregate members mentioned in the composite
literal and leave the other members unchanged. This change causes us
to write a zero value to the target in cases where the target is not
already known to hold a zero value and the number of initializers in
the composite literal differs from the number of elements in its type.

Author: Peter Collingbourne.  (hg clpatch got confused)

LGTM=pcc
R=pcc
CC=golang-codereviews
https://golang.org/cl/107980045
2014-06-16 12:29:30 -04:00
..
a_test.go go.tools: rename packages. 2014-01-16 09:33:58 -05:00
b_test.go go.tools: rename packages. 2014-01-16 09:33:58 -05:00
boundmeth.go go.tools/go/ssa: perform nil check when taking value of interface method. 2014-04-09 18:00:57 -04:00
callstack.go go.tools/go/ssa: name anon funcs by their enclosing func. 2014-02-28 10:18:55 -05:00
coverage.go go.tools/go/ssa: write zero value when storing a composite literal in-place if necessary 2014-06-16 12:29:30 -04:00
fieldprom.go go.tools: rename packages. 2014-01-16 09:33:58 -05:00
ifaceconv.go go.tools: rename packages. 2014-01-16 09:33:58 -05:00
ifaceprom.go go.tools: rename packages. 2014-01-16 09:33:58 -05:00
initorder.go go.tools/go/types: compute correct initialization order 2014-06-11 09:15:31 -07:00
methprom.go go.tools: rename packages. 2014-01-16 09:33:58 -05:00
mrvchain.go go.tools/go/ssa: simplify builder.exprN now that go/types emits correct types. 2014-01-17 09:38:25 -05:00
recover.go go.tools: rename packages. 2014-01-16 09:33:58 -05:00