/prebuilts/go/darwin-x86/test/fixedbugs/ |
issue4654.go | 8 // Check error for conversion and 'not used' in defer/go. 15 defer int(0) // ERROR "defer requires function call, not conversion|is not used" 23 defer append(x, 1) // ERROR "defer discards result of append|is not used" 24 defer cap(x) // ERROR "defer discards result of cap|is not used" 25 defer complex(1, 2) // ERROR "defer discards result of complex|is not used" 26 defer complex(f, 1) // ERROR "defer discards result of complex|is not used [all...] |
issue7272.go | 8 // go/defer functions. 41 defer close(c) 42 defer copy(a, a) 43 defer delete(m, 0) 44 defer panic(0) 45 defer print("foo") 46 defer println("bar") 47 defer recover()
|
issue8047.go | 8 // is a nil defer. 20 defer func() { 21 // catch & ignore panic from nil defer below 24 panic("defer of nil func didn't panic") 27 defer ((func())(nil))()
|
issue4463.go | 8 // go/defer functions. 68 defer append(a, 0) // ERROR "not used|discards result" 69 defer cap(a) // ERROR "not used|discards result" 70 defer complex(1, 2) // ERROR "not used|discards result" 71 defer imag(1i) // ERROR "not used|discards result" 72 defer len(a) // ERROR "not used|discards result" 73 defer make([]int, 10) // ERROR "not used|discards result" 74 defer new(int) // ERROR "not used|discards result" 75 defer real(1i) // ERROR "not used|discards result" 76 defer unsafe.Alignof(a) // ERROR "not used|discards result [all...] |
issue19710.go | 7 // Issue 19710: mishandled defer delete(...) 14 panic("bad defer delete") 22 defer delete(m, i)
|
issue8047b.go | 7 // Issue 8047. Defer setup during panic shouldn't crash for nil defer. 12 defer func() { 20 defer g()
|
issue4468.go | 7 // Issue 4468: go/defer calls may not be parenthesized. 23 defer F // ERROR "must be function call" 25 defer (F) // ERROR "must be function call|must not be parenthesized" 27 defer (F()) // ERROR "must be function call|must not be parenthesized" 31 defer (&s.t).F()
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
issue4654.go | 8 // Check error for conversion and 'not used' in defer/go. 15 defer int(0) // ERROR "defer requires function call, not conversion|is not used" 23 defer append(x, 1) // ERROR "defer discards result of append|is not used" 24 defer cap(x) // ERROR "defer discards result of cap|is not used" 25 defer complex(1, 2) // ERROR "defer discards result of complex|is not used" 26 defer complex(f, 1) // ERROR "defer discards result of complex|is not used [all...] |
issue7272.go | 8 // go/defer functions. 41 defer close(c) 42 defer copy(a, a) 43 defer delete(m, 0) 44 defer panic(0) 45 defer print("foo") 46 defer println("bar") 47 defer recover()
|
issue8047.go | 8 // is a nil defer. 20 defer func() { 21 // catch & ignore panic from nil defer below 24 panic("defer of nil func didn't panic") 27 defer ((func())(nil))()
|
issue4463.go | 8 // go/defer functions. 68 defer append(a, 0) // ERROR "not used|discards result" 69 defer cap(a) // ERROR "not used|discards result" 70 defer complex(1, 2) // ERROR "not used|discards result" 71 defer imag(1i) // ERROR "not used|discards result" 72 defer len(a) // ERROR "not used|discards result" 73 defer make([]int, 10) // ERROR "not used|discards result" 74 defer new(int) // ERROR "not used|discards result" 75 defer real(1i) // ERROR "not used|discards result" 76 defer unsafe.Alignof(a) // ERROR "not used|discards result [all...] |
issue19710.go | 7 // Issue 19710: mishandled defer delete(...) 14 panic("bad defer delete") 22 defer delete(m, i)
|
issue8047b.go | 7 // Issue 8047. Defer setup during panic shouldn't crash for nil defer. 12 defer func() { 20 defer g()
|
issue4468.go | 7 // Issue 4468: go/defer calls may not be parenthesized. 23 defer F // ERROR "must be function call" 25 defer (F) // ERROR "must be function call|must not be parenthesized" 27 defer (F()) // ERROR "must be function call|must not be parenthesized" 31 defer (&s.t).F()
|
/prebuilts/go/darwin-x86/test/ |
recover1.go | 29 mustNotRecover() // because it's not a defer call 62 defer mustRecover(1) 63 defer func() { 64 defer mustRecover(2) 72 defer mustNotRecover() 73 defer func() { 79 defer mustRecover(3) 87 defer mustNotRecover() 88 defer func() { 90 defer mustRecover(3 [all...] |
print.go | 35 defer println((interface{})(nil)) 36 defer println((interface { 39 defer println((map[int]int)(nil)) 40 defer println(([]int)(nil)) 41 defer println(int64(-11)) 42 defer println(uint64(12)) 43 defer println(uint32(12)) 44 defer println(uint16(12)) 45 defer println(uint8(12)) 46 defer println(uint(12) [all...] |
defer.go | 7 // Test defer. 19 defer addInt(i) 27 fmt.Printf("test1: bad defer result (should be 9876543210): %q\n", result) 28 panic("defer") 36 defer addDotDotDot(i) 44 fmt.Printf("test2: bad defer result (should be 9876543210): %q\n", result) 45 panic("defer")
|
deferprint.go | 7 // Test that we can defer the predeclared functions print and println. 12 defer println(42, true, false, true, 1.5, "world", (chan int)(nil), []int(nil), (map[string]int)(nil), (func())(nil), byte(255)) 13 defer println(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) 15 // defer panic("dead") 16 defer print("printing: ")
|
recover2.go | 39 defer mustRecover("index") 44 defer mustRecover("slice") 49 defer mustRecover("slice") 56 defer mustRecover("interface") 67 defer mustRecover("uncomparable") 74 defer mustRecover("unhashable") 82 defer mustRecover("divide by zero")
|
recover.go | 131 defer mustNotRecover() // because mustRecover will squelch it 132 defer mustRecover(1) // because of panic below 133 defer withoutRecover() // should be no-op, leaving for mustRecover to find 134 defer withoutRecoverRecursive(0) // ditto 144 defer func() { 151 defer func(x interface{}) { 163 defer func() { 174 defer mustRecover(2) 175 defer recover() // should be no-op 180 defer mustNotRecover( [all...] |
/prebuilts/go/linux-x86/test/ |
recover1.go | 29 mustNotRecover() // because it's not a defer call 62 defer mustRecover(1) 63 defer func() { 64 defer mustRecover(2) 72 defer mustNotRecover() 73 defer func() { 79 defer mustRecover(3) 87 defer mustNotRecover() 88 defer func() { 90 defer mustRecover(3 [all...] |
print.go | 35 defer println((interface{})(nil)) 36 defer println((interface { 39 defer println((map[int]int)(nil)) 40 defer println(([]int)(nil)) 41 defer println(int64(-11)) 42 defer println(uint64(12)) 43 defer println(uint32(12)) 44 defer println(uint16(12)) 45 defer println(uint8(12)) 46 defer println(uint(12) [all...] |
defer.go | 7 // Test defer. 19 defer addInt(i) 27 fmt.Printf("test1: bad defer result (should be 9876543210): %q\n", result) 28 panic("defer") 36 defer addDotDotDot(i) 44 fmt.Printf("test2: bad defer result (should be 9876543210): %q\n", result) 45 panic("defer")
|
deferprint.go | 7 // Test that we can defer the predeclared functions print and println. 12 defer println(42, true, false, true, 1.5, "world", (chan int)(nil), []int(nil), (map[string]int)(nil), (func())(nil), byte(255)) 13 defer println(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) 15 // defer panic("dead") 16 defer print("printing: ")
|
recover2.go | 39 defer mustRecover("index") 44 defer mustRecover("slice") 49 defer mustRecover("slice") 56 defer mustRecover("interface") 67 defer mustRecover("uncomparable") 74 defer mustRecover("unhashable") 82 defer mustRecover("divide by zero")
|