Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / go / pointer / testdata / issue9002.go
1 package main
2
3 func main() {
4         // Regression test for golang issue 9002.
5         //
6         // The two-result "value,ok" receive operation generated a
7         // too-wide constraint loading (value int, ok bool), not bool,
8         // from the channel.
9         //
10         // This bug manifested itself in an out-of-bounds array access
11         // when the makechan object was the highest-numbered node, as in
12         // this program.
13         //
14         // In more realistic programs it silently resulted in bogus
15         // constraints.
16         _, _ = <-make(chan int)
17 }