1// run 2 3// Copyright 2018 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. 6 7package main 8 9type TestSuite struct { 10 Tests []int 11} 12 13var Suites = []TestSuite{ 14 Dicts, 15} 16var Dicts = TestSuite{ 17 Tests: []int{0}, 18} 19 20func main() { 21 if &Dicts.Tests[0] != &Suites[0].Tests[0] { 22 panic("bad") 23 } 24} 25