summaryrefslogtreecommitdiffstats
path: root/test/fixedbugs/issue29013a.go
blob: efc50dfb1f2810a749894ca044dd8ea273d87346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// run

// Copyright 2018 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.

package main

type TestSuite struct {
	Tests []int
}

var Suites = []TestSuite{
	Dicts,
}
var Dicts = TestSuite{
	Tests: []int{0},
}

func main() {
	if &Dicts.Tests[0] != &Suites[0].Tests[0] {
		panic("bad")
	}
}