]> Cypherpunks.ru repositories - gostls13.git/blob - test/fixedbugs/issue29013a.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / fixedbugs / issue29013a.go
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
7 package main
8
9 type TestSuite struct {
10         Tests []int
11 }
12
13 var Suites = []TestSuite{
14         Dicts,
15 }
16 var Dicts = TestSuite{
17         Tests: []int{0},
18 }
19
20 func main() {
21         if &Dicts.Tests[0] != &Suites[0].Tests[0] {
22                 panic("bad")
23         }
24 }