Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Side by Side Diff: test/fixedbugs/issue8336.go

Issue 160200044: [dev.power64] code review 160200044: build: merge default into dev.power64 (Closed)
Patch Set: diff -r be0c14f62257b42485019e9e1db23cf40d2e249f https://code.google.com/p/go Created 10 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/fixedbugs/issue8325.go ('k') | test/fixedbugs/issue8475.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // run
2
3 // Copyright 2014 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 // Issue 8336. Order of evaluation of receive channels in select.
8
9 package main
10
11 type X struct {
12 c chan int
13 }
14
15 func main() {
16 defer func() {
17 recover()
18 }()
19 var x *X
20 select {
21 case <-x.c: // should fault and panic before foo is called
22 case <-foo():
23 }
24 }
25
26 func foo() chan int {
27 println("BUG: foo must not be called")
28 return make(chan int)
29 }
OLDNEW
« no previous file with comments | « test/fixedbugs/issue8325.go ('k') | test/fixedbugs/issue8475.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b