summaryrefslogtreecommitdiffstats
path: root/test/fixedbugs/gcc80226.go
blob: 530b397f0f9d1d5eeb1c4ba816f669d87f0277eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// compile

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

// The gccgo compiler crashed while compiling a function that returned
// multiple zero-sized structs.
// https://gcc.gnu.org/PR80226.

package p

type S struct{}

func F() (S, S) {
	return S{}, S{}
}