3 // Copyright 2014 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Test for a garbage collection bug involving not
8 // marking x as having its address taken by &x[0]
9 // when x is an array value.
20 var x = [4]struct{ x, y interface{} }{
30 fmt.Fprintf(&buf, "%s %s ", z.x.(string), z.y.(string))
33 if buf.String() != "a b c d e f g h " {
34 println("BUG wrong output\n", buf.String())