test/fixedbugs/issue13265.go
raw| 1 | // errorcheck -0 -race |
| 2 | |
| 3 | //go:build (linux && amd64) || (linux && ppc64le) || (darwin && amd64) || (freebsd && amd64) || (netbsd && amd64) || (windows && amd64) |
| 4 | |
| 5 | // Copyright 2017 The Go Authors. All rights reserved. |
| 6 | // Use of this source code is governed by a BSD-style |
| 7 | // license that can be found in the LICENSE file. |
| 8 | |
| 9 | // Issue 13265: nil pointer deref. |
| 10 | |
| 11 | package p |
| 12 | |
| 13 | func f() { |
| 14 | var c chan chan chan int |
| 15 | for ; ; <-<-<-c { |
| 16 | } |
| 17 | } |