]> Cypherpunks repositories - gostls13.git/commitdiff
test: add bug426.go: a gccgo crash on valid code
authorIan Lance Taylor <iant@golang.org>
Thu, 1 Mar 2012 05:51:21 +0000 (21:51 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 1 Mar 2012 05:51:21 +0000 (21:51 -0800)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5715044

test/fixedbugs/bug426.go [new file with mode: 0644]

diff --git a/test/fixedbugs/bug426.go b/test/fixedbugs/bug426.go
new file mode 100644 (file)
index 0000000..a1af3cf
--- /dev/null
@@ -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)
+}