With the gc toolchain apparently var s *string _ = *s is enough to panic with a nil pointer dereference. The gccgo compiler will simply discard the dereference, which I think is a reasonable and acceptable optimization. Change the tests to use an exported variable instead. The tests are not currently run, but they will be with a later patch to gotools. Reviewed-on: https://go-review.googlesource.com/46450 From-SVN: r249562
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
windows | Loading commit data... | |
aprof.go | Loading commit data... | |
callback.go | Loading commit data... | |
cgo.go | Loading commit data... | |
crash.go | Loading commit data... | |
deadlock.go | Loading commit data... | |
dll_windows.go | Loading commit data... | |
dropm.go | Loading commit data... | |
dropm_stub.go | Loading commit data... | |
exec.go | Loading commit data... | |
main.go | Loading commit data... | |
pprof.go | Loading commit data... | |
raceprof.go | Loading commit data... | |
racesig.go | Loading commit data... | |
threadpanic.go | Loading commit data... | |
threadpanic_unix.c | Loading commit data... | |
threadpanic_windows.c | Loading commit data... | |
threadpprof.go | Loading commit data... | |
threadprof.go | Loading commit data... | |
traceback.go | Loading commit data... | |
tracebackctxt.go | Loading commit data... | |
tracebackctxt_c.c | Loading commit data... |