Skip to content

Commit

Permalink
test: add another test case that gccgo crashed on
Browse files Browse the repository at this point in the history
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/124020044
  • Loading branch information
ianlancetaylor committed Aug 8, 2014
1 parent 44106a0 commit f69f45c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/fixedbugs/bug490.go
@@ -0,0 +1,16 @@
// 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{}
}

0 comments on commit f69f45c

Please sign in to comment.