1 // $G $D/$F.go && $L $F.$A && ./$A.out
3 // Copyright 2009 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.
20 var a1 = S { 0, 0, 0, 1, 2, 3 }
21 var b1 = S { X: 1, Z: 3, Y: 2 }
23 var a2 = S { 0, 0, 0, 0, 0, 0, }
26 var a3 = T { S { 1, 2, 3, 0, 0, 0, } }
27 var b3 = T { S: S{ A: 1, B: 2, C: 3 } }
29 var a4 = &[16]byte { 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, }
30 var b4 = &[16]byte { 4: 1, 1, 1, 1, 12: 1, 1, }
32 var a5 = &[16]byte { 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, }
33 var b5 = &[16]byte { 1, 4: 1, 1, 1, 1, 12: 1, 1, }
35 var a6 = &[16]byte { 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, }
36 var b6 = &[...]byte { 1, 4: 1, 1, 1, 1, 12: 1, 1, 0, 0,}
53 for _, s := range same {
54 if !reflect.DeepEqual(s.a, s.b) {
56 fmt.Printf("not same: %v and %v\n", s.a, s.b)
60 fmt.Println("BUG: test/initialize")