aboutsummaryrefslogtreecommitdiff
path: root/test/nilptr2.go
AgeCommit message (Collapse)Author
2019-05-11test: use a real use function in nilptr2.goCherry Zhang
Adjust the dummy use function to a real use. As suggested by the println calls in the test, nilptr2.go supposes to check that a used nil pointer dereference panics. This use function is not real enough so an optimized compiler such as gccgo could eliminate the call. The spec requires that even a dummy use would cause a panic. Unfortunately, due to #31151 this is not true for gccgo at -O1 or above. Change-Id: Ie07c8a5969ab94dad82d4f7cfec30597c25b7c46 Reviewed-on: https://go-review.googlesource.com/c/go/+/176579 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-05-02all: make copyright headers consistent with one space after periodEmmanuel Odeke
Follows suit with https://go-review.googlesource.com/#/c/20111. Generated by running $ grep -R 'Go Authors. All' * | cut -d":" -f1 | while read F;do perl -pi -e 's/Go Authors. All/Go Authors. All/g' $F;done The code in cmd/internal/unvendor wasn't changed. Fixes #15213 Change-Id: I4f235cee0a62ec435f9e8540a1ec08ae03b1a75f Reviewed-on: https://go-review.googlesource.com/21819 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2013-10-08test: revert changes made for Go SSA interpreter test.Alan Donovan
R=r, gri CC=golang-dev https://golang.org/cl/14552044
2013-08-19test: exit non-zero on error from nilptr2.go.Alan Donovan
(For go.tools/ssa/interp/interp_test, which runs a subset of these tests under this assumption.) R=rsc, r CC=golang-dev https://golang.org/cl/13108043
2013-08-16test: say that nilptr2.go requires 256+MB stackDmitriy Vyukov
Fixes #6161. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13059043
2013-08-15cmd/gc: &x panics if x doesRuss Cox
See golang.org/s/go12nil. This CL is about getting all the right checks inserted. A followup CL will add an optimization pass to remove redundant checks. R=ken2 CC=golang-dev https://golang.org/cl/12970043