]> Cypherpunks repositories - gostls13.git/commit
test: add test that gccgo failed to compile
authorIan Lance Taylor <iant@golang.org>
Tue, 16 Dec 2014 23:53:41 +0000 (15:53 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 17 Dec 2014 02:22:57 +0000 (02:22 +0000)
commit60ea2c594bdfb8d0ae4e13c8a028e59ed07bf9a9
treea7924cffb7188343b4c218a8b546a64e53a9d9d0
parent1b0b0db6fbd6a11df18bda38eae1f46a1835b9e5
test: add test that gccgo failed to compile

Gccgo failed to create the type descriptor for the type used to
allocate the nil value passed to append as the second argument when
append is called with only one argument.  Calling append with only one
argument is unusual but obviously should not cause a compiler crash.

Change-Id: I530821847dfd68f0302de6ca6a84dfbc79653935
Reviewed-on: https://go-review.googlesource.com/1692
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
test/fixedbugs/bug493.go [new file with mode: 0644]