mirror of
https://github.com/golang/go
synced 2024-11-25 11:07:59 -07:00
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:
parent
1f0f459a16
commit
532c1b451b
15
test/fixedbugs/bug426.go
Normal file
15
test/fixedbugs/bug426.go
Normal 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)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user