Commit f69f45c5 authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: add another test case that gccgo crashed on

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/124020044
parent 44106a08
// compile
// Copyright 2014 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 used to crash building a comparison between an
// interface and an empty struct literal.
package p
type S struct{}
func F(v interface{}) bool {
return v == S{}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment