mirror of
https://github.com/golang/go
synced 2024-11-05 18:36:08 +00: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
1 changed files with 15 additions and 0 deletions
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 a new issue