Delta Between Two Patch Sets: test/fixedbugs/bug028.go
Issue 5656082 :
code review 5656082: test: use testlib (first 100) (Closed)
Left Patch Set:
Right Patch Set: diff -r e1704b98dff6 https://code.google.com/p/go/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
test/235.go
test/alias.go
test/alias1.go
test/append.go
test/assign.go
test/assign1.go
test/bench/garbage/peano.go
test/bigalg.go
test/bigmap.go
test/blank.go
test/blank1.go
test/chan/doubleselect.go
test/chan/fifo.go
test/chan/goroutines.go
test/chan/nonblock.go
test/chan/perm.go
test/chan/powser1.go
test/chan/powser2.go
test/chan/select.go
test/chan/select2.go
test/chan/select3.go
test/chan/select4.go
test/chan/select6.go
test/chan/select7.go
test/chan/sendstmt.go
test/chan/sieve1.go
test/chan/sieve2.go
test/chan/zerosize.go
test/chancap.go
test/char_lit1.go
test/closedchan.go
test/closure.go
test/cmp.go
test/cmp6.go
test/cmplx.go
test/complit.go
test/complit1.go
test/const.go
test/const1.go
test/const2.go
test/const3.go
test/convert.go
test/convert1.go
test/convert3.go
test/convlit.go
test/convlit1.go
test/copy.go
test/ddd.go
test/ddd1.go
test/decl.go
test/declbad.go
test/defer.go
test/divide.go
test/dwarf/linedirectives.go
test/empty.go
test/env.go
test/eof.go
test/eof1.go
test/escape.go
test/escape3.go
test/fixedbugs/bug000.go
test/fixedbugs/bug002.go
test/fixedbugs/bug003.go
test/fixedbugs/bug004.go
test/fixedbugs/bug005.go
test/fixedbugs/bug006.go
test/fixedbugs/bug007.go
test/fixedbugs/bug008.go
test/fixedbugs/bug009.go
test/fixedbugs/bug010.go
test/fixedbugs/bug011.go
test/fixedbugs/bug012.go
test/fixedbugs/bug013.go
test/fixedbugs/bug014.go
test/fixedbugs/bug015.go
test/fixedbugs/bug016.go
test/fixedbugs/bug017.go
test/fixedbugs/bug021.go
test/fixedbugs/bug022.go
test/fixedbugs/bug023.go
test/fixedbugs/bug024.go
test/fixedbugs/bug026.go
test/fixedbugs/bug027.go
test/fixedbugs/bug028.go
test/fixedbugs/bug030.go
test/fixedbugs/bug031.go
test/fixedbugs/bug035.go
test/fixedbugs/bug037.go
test/fixedbugs/bug039.go
test/fixedbugs/bug045.go
test/fixedbugs/bug046.go
test/fixedbugs/bug047.go
test/fixedbugs/bug048.go
test/fixedbugs/bug049.go
test/fixedbugs/bug050.go
test/fixedbugs/bug051.go
test/fixedbugs/bug052.go
test/fixedbugs/bug053.go
test/fixedbugs/bug054.go
LEFT RIGHT
(no file at all) 1 // $G $D/$F.go && $L $F.$A && ./$A.out 1 // run
2 2
3 // Copyright 2009 The Go Authors. All rights reserved. 3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style 4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file. 5 // license that can be found in the LICENSE file.
6 6
7 package main 7 package main
8 8
9 9
10 func Alloc(i int) int { 10 func Alloc(i int) int {
11 switch i { 11 switch i {
12 default: 12 default:
13 return 5; 13 return 5;
14 case 1: 14 case 1:
15 return 1; 15 return 1;
16 case 10: 16 case 10:
17 return 10; 17 return 10;
18 } 18 }
19 return 0 19 return 0
20 } 20 }
21 21
22 func main() { 22 func main() {
23 s := Alloc(7); 23 s := Alloc(7);
24 if s != 5 { panic("bad") } 24 if s != 5 { panic("bad") }
25 } 25 }
26 26
27 /* 27 /*
28 bug028.go:7: unreachable statements in a switch 28 bug028.go:7: unreachable statements in a switch
29 */ 29 */
LEFT RIGHT