/prebuilts/go/darwin-x86/test/fixedbugs/ |
issue22581.go | 10 if i := g()); i == j { // ERROR "unexpected \)" 13 if i == g()] { // ERROR "unexpected \]" 16 switch i := g()); i { // ERROR "unexpected \)" 19 switch g()] { // ERROR "unexpected \]" 22 for i := g()); i < y; { // ERROR "unexpected \)" 25 for g()] { // ERROR "unexpected \]"
|
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" 16 go string([]byte("abc")) // ERROR "go 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" 27 defer imag(1i) // ERROR "defer discards result of imag|is not used" 28 defer imag(c) // ERROR "defer discards result of imag|is not used" 29 defer len(x) // ERROR "defer discards result of len|is not used [all...] |
issue4232.go | 14 _ = a[-1] // ERROR "invalid array index -1|index out of bounds" 15 _ = a[-1:] // ERROR "invalid slice index -1|index out of bounds" 16 _ = a[:-1] // ERROR "invalid slice index -1|index out of bounds" 17 _ = a[10] // ERROR "invalid array index 10|index out of bounds" 20 _ = a[9:12] // ERROR "invalid slice index 12|index out of bounds" 21 _ = a[11:12] // ERROR "invalid slice index 11|index out of bounds" 22 _ = a[1<<100 : 1<<110] // ERROR "overflows int" "invalid slice index 1 << 100|index out of bounds" 25 _ = s[-1] // ERROR "invalid slice index -1|index out of bounds" 26 _ = s[-1:] // ERROR "invalid slice index -1|index out of bounds" 27 _ = s[:-1] // ERROR "invalid slice index -1|index out of bounds [all...] |
/prebuilts/go/linux-x86/test/fixedbugs/ |
issue22581.go | 10 if i := g()); i == j { // ERROR "unexpected \)" 13 if i == g()] { // ERROR "unexpected \]" 16 switch i := g()); i { // ERROR "unexpected \)" 19 switch g()] { // ERROR "unexpected \]" 22 for i := g()); i < y; { // ERROR "unexpected \)" 25 for g()] { // ERROR "unexpected \]"
|
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" 16 go string([]byte("abc")) // ERROR "go 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" 27 defer imag(1i) // ERROR "defer discards result of imag|is not used" 28 defer imag(c) // ERROR "defer discards result of imag|is not used" 29 defer len(x) // ERROR "defer discards result of len|is not used [all...] |
issue4232.go | 14 _ = a[-1] // ERROR "invalid array index -1|index out of bounds" 15 _ = a[-1:] // ERROR "invalid slice index -1|index out of bounds" 16 _ = a[:-1] // ERROR "invalid slice index -1|index out of bounds" 17 _ = a[10] // ERROR "invalid array index 10|index out of bounds" 20 _ = a[9:12] // ERROR "invalid slice index 12|index out of bounds" 21 _ = a[11:12] // ERROR "invalid slice index 11|index out of bounds" 22 _ = a[1<<100 : 1<<110] // ERROR "overflows int" "invalid slice index 1 << 100|index out of bounds" 25 _ = s[-1] // ERROR "invalid slice index -1|index out of bounds" 26 _ = s[-1:] // ERROR "invalid slice index -1|index out of bounds" 27 _ = s[:-1] // ERROR "invalid slice index -1|index out of bounds [all...] |
/external/ltp/testcases/kernel/mem/mmapstress/ |
mmapstress03.c | 63 #define ERROR(M) (void)fprintf(stderr, "%s: errno = %d: " M "\n", TCID, \ 76 ERROR("initial sbrk failed"); 82 ERROR("couldn't round up brk to a page boundary"); 89 ERROR("couldn't brk large space for segments"); 93 ERROR("couldn't find top of brk"); 101 ERROR("failed to munmap odd hole in brk segment"); 108 ERROR("do_test should leave the top of brk where it began"); 115 ERROR("couldn't brk back over holes"); 119 ERROR("couldn't find top of break again"); 127 ERROR("failed to munmap even hole in brk segment") [all...] |
/prebuilts/go/darwin-x86/test/ |
const1.go | 33 a1 = Int8 * 100 // ERROR "overflow" 35 a3 = Int8 * 1000 // ERROR "overflow" 36 a4 = Int8 * int8(1000) // ERROR "overflow" 37 a5 = int8(Int8 * 1000) // ERROR "overflow" 38 a6 = int8(Int8 * int8(1000)) // ERROR "overflow" 39 a7 = Int8 - 2*Int8 - 2*Int8 // ERROR "overflow" 40 a8 = Int8 * Const / 100 // ERROR "overflow" 43 b1 = Uint8 * Uint8 // ERROR "overflow" 44 b2 = Uint8 * -1 // ERROR "overflow" 46 b4 = Uint8 - Uint8 - Uint8 // ERROR "overflow [all...] |
escape_map.go | 14 m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) does not escape" 16 i := 0 // ERROR "moved to heap: i" 18 j := 0 // ERROR "moved to heap: j" 19 m[&i] = &j // ERROR "&i escapes to heap" "&j escapes to heap" 24 m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) does not escape" 26 i := 0 // ERROR "moved to heap: i" 27 j := 0 // ERROR "moved to heap: j" 28 m[&i] = &j // ERROR "&i escapes to heap" "&j escapes to heap" 29 return m[&i] // ERROR "&i does not escape" 33 m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) escapes to heap [all...] |
escape_field.go | 24 i := 0 // ERROR "moved to heap: i$" 26 x.p1 = &i // ERROR "&i escapes to heap$" 27 sink = x.p1 // ERROR "x\.p1 escapes to heap" 31 i := 0 // ERROR "moved to heap: i$" 34 x.p1 = &i // ERROR "&i escapes to heap$" 35 sink = x.p2 // ERROR "x\.p2 escapes to heap" 39 i := 0 // ERROR "moved to heap: i$" 41 x.p1 = &i // ERROR "&i escapes to heap$" 42 sink = x // ERROR "x escapes to heap" 46 i := 0 // ERROR "moved to heap: i$ [all...] |
escape_indir.go | 25 i := 0 // ERROR "moved to heap: i" 26 x := &ConstPtr{} // ERROR "&ConstPtr literal does not escape" 28 x.p = &i // ERROR "&i escapes to heap" 33 i := 0 // ERROR "moved to heap: i" 34 x := &ConstPtr{} // ERROR "&ConstPtr literal escapes to heap" 35 x.p = &i // ERROR "&i escapes to heap" 40 i := 0 // ERROR "moved to heap: i" 41 x := &ConstPtr{} // ERROR "&ConstPtr literal does not escape" 42 x.p = &i // ERROR "&i escapes to heap" 47 i := 0 // ERROR "moved to heap: i [all...] |
escape_iface.go | 17 func mescapes(m M) { // ERROR "leaking param: m" 18 sink = m // ERROR "m escapes to heap" 21 func mdoesnotescape(m M) { // ERROR "m does not escape" 35 v := M0{&i} // ERROR "&i does not escape" 36 var x M = v // ERROR "v does not escape" 40 i := 0 // ERROR "moved to heap: i" 41 v := M0{&i} // ERROR "&i escapes to heap" 42 var x M = v // ERROR "v escapes to heap" 43 sink = x // ERROR "x escapes to heap" 47 v := M0{&i} // ERROR "&i does not escape [all...] |
escape2.go | 21 func foo1(x int) { // ERROR "moved to heap: x$" 22 gxx = &x // ERROR "&x escapes to heap$" 25 func foo2(yy *int) { // ERROR "leaking param: yy$" 29 func foo3(x int) *int { // ERROR "moved to heap: x$" 30 return &x // ERROR "&x escapes to heap$" 35 func foo3b(t T) { // ERROR "leaking param: t$" 40 func foo4(xx, yy *int) { // ERROR "foo4 xx does not escape$" "foo4 yy does not escape$" 45 func foo5(xx **int, yy *int) { // ERROR "foo5 xx does not escape$" "foo5 yy does not escape$" 46 xx = &yy // ERROR "foo5 &yy does not escape$" 49 func foo6(xx **int, yy *int) { // ERROR "foo6 xx does not escape$" "leaking param: yy$ [all...] |
escape2n.go | 21 func foo1(x int) { // ERROR "moved to heap: x$" 22 gxx = &x // ERROR "&x escapes to heap$" 25 func foo2(yy *int) { // ERROR "leaking param: yy$" 29 func foo3(x int) *int { // ERROR "moved to heap: x$" 30 return &x // ERROR "&x escapes to heap$" 35 func foo3b(t T) { // ERROR "leaking param: t$" 40 func foo4(xx, yy *int) { // ERROR "foo4 xx does not escape$" "foo4 yy does not escape$" 45 func foo5(xx **int, yy *int) { // ERROR "foo5 xx does not escape$" "foo5 yy does not escape$" 46 xx = &yy // ERROR "foo5 &yy does not escape$" 49 func foo6(xx **int, yy *int) { // ERROR "foo6 xx does not escape$" "leaking param: yy$ [all...] |
sliceopt.go | 12 x = append(x, y) // ERROR "append: len-only update \(in local slice\)$" 21 *x = append(*x, y) // ERROR "append: len-only update$" 31 zs = zs[i : i+1] // ERROR "Proved boolean IsSliceInBounds$" 38 z = (**x)[2:len(**x)] // ERROR "Proved boolean IsSliceInBounds$" 39 z = (**x)[2:cap(**x)] // ERROR "Proved IsSliceInBounds$" 40 z = (**x)[i:i] // -ERROR "Proved IsSliceInBounds" 41 z = (**x)[1:i:i] // ERROR "Proved boolean IsSliceInBounds$" 43 z = (**x)[i:0:j] // ERROR "Disproved IsSliceInBounds$" 44 z = (**x)[0:i:j] // ERROR "Proved boolean IsSliceInBounds$" 45 z = (**x)[0:] // ERROR "slice: omit slice operation$ [all...] |
/prebuilts/go/linux-x86/test/ |
const1.go | 33 a1 = Int8 * 100 // ERROR "overflow" 35 a3 = Int8 * 1000 // ERROR "overflow" 36 a4 = Int8 * int8(1000) // ERROR "overflow" 37 a5 = int8(Int8 * 1000) // ERROR "overflow" 38 a6 = int8(Int8 * int8(1000)) // ERROR "overflow" 39 a7 = Int8 - 2*Int8 - 2*Int8 // ERROR "overflow" 40 a8 = Int8 * Const / 100 // ERROR "overflow" 43 b1 = Uint8 * Uint8 // ERROR "overflow" 44 b2 = Uint8 * -1 // ERROR "overflow" 46 b4 = Uint8 - Uint8 - Uint8 // ERROR "overflow [all...] |
escape_map.go | 14 m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) does not escape" 16 i := 0 // ERROR "moved to heap: i" 18 j := 0 // ERROR "moved to heap: j" 19 m[&i] = &j // ERROR "&i escapes to heap" "&j escapes to heap" 24 m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) does not escape" 26 i := 0 // ERROR "moved to heap: i" 27 j := 0 // ERROR "moved to heap: j" 28 m[&i] = &j // ERROR "&i escapes to heap" "&j escapes to heap" 29 return m[&i] // ERROR "&i does not escape" 33 m := make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) escapes to heap [all...] |
escape_field.go | 24 i := 0 // ERROR "moved to heap: i$" 26 x.p1 = &i // ERROR "&i escapes to heap$" 27 sink = x.p1 // ERROR "x\.p1 escapes to heap" 31 i := 0 // ERROR "moved to heap: i$" 34 x.p1 = &i // ERROR "&i escapes to heap$" 35 sink = x.p2 // ERROR "x\.p2 escapes to heap" 39 i := 0 // ERROR "moved to heap: i$" 41 x.p1 = &i // ERROR "&i escapes to heap$" 42 sink = x // ERROR "x escapes to heap" 46 i := 0 // ERROR "moved to heap: i$ [all...] |
escape_indir.go | 25 i := 0 // ERROR "moved to heap: i" 26 x := &ConstPtr{} // ERROR "&ConstPtr literal does not escape" 28 x.p = &i // ERROR "&i escapes to heap" 33 i := 0 // ERROR "moved to heap: i" 34 x := &ConstPtr{} // ERROR "&ConstPtr literal escapes to heap" 35 x.p = &i // ERROR "&i escapes to heap" 40 i := 0 // ERROR "moved to heap: i" 41 x := &ConstPtr{} // ERROR "&ConstPtr literal does not escape" 42 x.p = &i // ERROR "&i escapes to heap" 47 i := 0 // ERROR "moved to heap: i [all...] |
escape_iface.go | 17 func mescapes(m M) { // ERROR "leaking param: m" 18 sink = m // ERROR "m escapes to heap" 21 func mdoesnotescape(m M) { // ERROR "m does not escape" 35 v := M0{&i} // ERROR "&i does not escape" 36 var x M = v // ERROR "v does not escape" 40 i := 0 // ERROR "moved to heap: i" 41 v := M0{&i} // ERROR "&i escapes to heap" 42 var x M = v // ERROR "v escapes to heap" 43 sink = x // ERROR "x escapes to heap" 47 v := M0{&i} // ERROR "&i does not escape [all...] |
escape2.go | 21 func foo1(x int) { // ERROR "moved to heap: x$" 22 gxx = &x // ERROR "&x escapes to heap$" 25 func foo2(yy *int) { // ERROR "leaking param: yy$" 29 func foo3(x int) *int { // ERROR "moved to heap: x$" 30 return &x // ERROR "&x escapes to heap$" 35 func foo3b(t T) { // ERROR "leaking param: t$" 40 func foo4(xx, yy *int) { // ERROR "foo4 xx does not escape$" "foo4 yy does not escape$" 45 func foo5(xx **int, yy *int) { // ERROR "foo5 xx does not escape$" "foo5 yy does not escape$" 46 xx = &yy // ERROR "foo5 &yy does not escape$" 49 func foo6(xx **int, yy *int) { // ERROR "foo6 xx does not escape$" "leaking param: yy$ [all...] |
escape2n.go | 21 func foo1(x int) { // ERROR "moved to heap: x$" 22 gxx = &x // ERROR "&x escapes to heap$" 25 func foo2(yy *int) { // ERROR "leaking param: yy$" 29 func foo3(x int) *int { // ERROR "moved to heap: x$" 30 return &x // ERROR "&x escapes to heap$" 35 func foo3b(t T) { // ERROR "leaking param: t$" 40 func foo4(xx, yy *int) { // ERROR "foo4 xx does not escape$" "foo4 yy does not escape$" 45 func foo5(xx **int, yy *int) { // ERROR "foo5 xx does not escape$" "foo5 yy does not escape$" 46 xx = &yy // ERROR "foo5 &yy does not escape$" 49 func foo6(xx **int, yy *int) { // ERROR "foo6 xx does not escape$" "leaking param: yy$ [all...] |
sliceopt.go | 12 x = append(x, y) // ERROR "append: len-only update \(in local slice\)$" 21 *x = append(*x, y) // ERROR "append: len-only update$" 31 zs = zs[i : i+1] // ERROR "Proved boolean IsSliceInBounds$" 38 z = (**x)[2:len(**x)] // ERROR "Proved boolean IsSliceInBounds$" 39 z = (**x)[2:cap(**x)] // ERROR "Proved IsSliceInBounds$" 40 z = (**x)[i:i] // -ERROR "Proved IsSliceInBounds" 41 z = (**x)[1:i:i] // ERROR "Proved boolean IsSliceInBounds$" 43 z = (**x)[i:0:j] // ERROR "Disproved IsSliceInBounds$" 44 z = (**x)[0:i:j] // ERROR "Proved boolean IsSliceInBounds$" 45 z = (**x)[0:] // ERROR "slice: omit slice operation$ [all...] |
/system/update_engine/common/ |
boot_control_stub.cc | 30 LOG(ERROR) << __FUNCTION__ << " should never be called."; 37 LOG(ERROR) << __FUNCTION__ << " should never be called."; 42 LOG(ERROR) << __FUNCTION__ << " should never be called."; 47 LOG(ERROR) << __FUNCTION__ << " should never be called."; 52 LOG(ERROR) << __FUNCTION__ << " should never be called.";
|
/tools/tradefederation/core/ |
error_prone_rules.mk | 15 # Set of error prone rules to ensure code quality 18 -Xep:ArrayToString:ERROR \ 19 -Xep:BoxedPrimitiveConstructor:ERROR \ 20 -Xep:ConstantField:ERROR \ 21 -Xep:DeadException:ERROR \ 22 -Xep:EqualsIncompatibleType:ERROR \ 23 -Xep:FormatString:ERROR \ 24 -Xep:GetClassOnClass:ERROR \ 25 -Xep:IdentityBinaryExpression:ERROR \ 26 -Xep:JUnit3TestNotRun:ERROR \ [all...] |