mirror of
https://github.com/golang/go
synced 2024-11-12 10:20:27 -07:00
4c8e8fc301
Fixes #13265. Change-Id: I792eb4ee26bef8a56e279e23f9802cb39019e0d0 Reviewed-on: https://go-review.googlesource.com/34929 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
16 lines
301 B
Go
16 lines
301 B
Go
// errorcheck -0 -race
|
|
|
|
// Copyright 2017 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.
|
|
|
|
// Issue 13265: nil pointer deref.
|
|
|
|
package p
|
|
|
|
func f() {
|
|
var c chan chan chan int
|
|
for ; ; <-<-<-c {
|
|
}
|
|
}
|