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

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

// Issue 18994: SSA didn't handle DOT STRUCTLIT for zero-valued
// STRUCTLIT.

package main

// large struct - not SSA-able
type T struct {
	a, b, c, d, e, f, g, h int
}

func main() {
	x := T{}.a
	if x != 0 {
		panic("FAIL")
	}
}