test: add bug426.go: a gccgo crash on valid code

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5715044
This commit is contained in:
Ian Lance Taylor 2012-02-29 21:51:21 -08:00
parent 1f0f459a16
commit 532c1b451b

15
test/fixedbugs/bug426.go Normal file
View file

@ -0,0 +1,15 @@
// compile
// Copyright 2012 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.
// gccgo crashed compiling this.
package p
type T *T
func f(t T) {
println(t, *t)
}