/prebuilts/go/darwin-x86/test/ |
complit1.go | 21 _ = [3]int{1, 2, 3}[:] // ERROR "slice of unaddressable value" 22 _ = m[0][:] // ERROR "slice of unaddressable value" 23 _ = f()[:] // ERROR "slice of unaddressable value" 25 _ = 301[:] // ERROR "cannot slice" 26 _ = 3.1[:] // ERROR "cannot slice" 27 _ = true[:] // ERROR "cannot slice" 47 _ = &T{i: 0, f: 0, s: "", next: {}} // ERROR "missing type in composite literal|omit types within composite literal" 48 _ = &T{0, 0, "", {}} // ERROR "missing type in composite literal|omit types within composite literal" 49 _ = TP{i: 0, f: 0, s: "", next: {}} // ERROR "invalid pointer type" 50 _ = &Ti{} // ERROR "invalid pointer type [all...] |
writebarrier.go | 17 *x = z // ERROR "write barrier" 24 *x = z // ERROR "write barrier" 28 *x = *y // ERROR "write barrier" 31 *x = z // ERROR "write barrier" 38 *x = z // ERROR "write barrier" 45 *x = z // ERROR "write barrier" 52 *x = z // ERROR "write barrier" 56 *x = *y // ERROR "write barrier" 59 *x = z // ERROR "write barrier" 63 *x = y // ERROR "write barrier [all...] |
assign1.go | 108 a = a1 // ERROR "cannot use" 110 a1 = a // ERROR "cannot use" 115 b = b1 // ERROR "cannot use" 117 b1 = b // ERROR "cannot use" 122 c = c1 // ERROR "cannot use" 124 c1 = c // ERROR "cannot use" 129 f = f1 // ERROR "cannot use" 131 f1 = f // ERROR "cannot use" 143 m = m1 // ERROR "cannot use" 145 m1 = m // ERROR "cannot use [all...] |
makenew.go | 13 _ = make() // ERROR "missing argument" 14 _ = make(int) // ERROR "cannot make type" 15 _ = make([]int) // ERROR "missing len argument" 17 _ = new() // ERROR "missing argument" 18 _ = new(int, 2) // ERROR "too many arguments"
|
escape_array.go | 15 func bar(a, b *string) U { // ERROR "leaking param: a to result ~r2 level=0$" "leaking param: b to result ~r2 level=0$" 19 func foo(x U) U { // ERROR "leaking param: x to result ~r1 level=0$" 23 func bff(a, b *string) U { // ERROR "leaking param: a to result ~r2 level=0$" "leaking param: b to result ~r2 level=0$" 29 b := "dog" // ERROR "moved to heap: b$" 30 u := bff(&a, &b) // ERROR "tbff1 &a does not escape$" "tbff1 &b does not escape$" 32 return &b // ERROR "&b escapes to heap$" 37 a := "cat" // ERROR "moved to heap: a$" 38 b := "dog" // ERROR "moved to heap: b$" 39 u := bff(&a, &b) // ERROR "&a escapes to heap$" "&b escapes to heap$" 44 func car(x U) *string { // ERROR "leaking param: x to result ~r1 level=0$ [all...] |
/prebuilts/go/darwin-x86/test/fixedbugs/ |
issue20298.go | 7 // Issue 20298: "imported and not used" error report order was non-deterministic. 14 "bufio" // ERROR "imported and not used" 15 "bytes" // ERROR "imported and not used" 16 "crypto/x509" // ERROR "imported and not used" 17 "flag" // ERROR "imported and not used" 18 "fmt" // ERROR "imported and not used" 19 "io" // ERROR "imported and not used" 20 "io/ioutil" // ERROR "imported and not used" 21 "log" // ERROR "imported and not used" 22 "math" // ERROR "imported and not used [all...] |
issue7150.go | 7 // issue 7150: array index out of bounds error off by one 12 _ = [0]int{-1: 50} // ERROR "index must be non-negative integer constant" 13 _ = [0]int{0: 0} // ERROR "index 0 out of bounds \[0:0\]" 14 _ = [0]int{5: 25} // ERROR "index 5 out of bounds \[0:0\]" 15 _ = [10]int{2: 10, 15: 30} // ERROR "index 15 out of bounds \[0:10\]" 16 _ = [10]int{5: 5, 1: 1, 12: 12} // ERROR "index 12 out of bounds \[0:10\]"
|
issue7223.go | 15 _ = make([]byte, nil) // ERROR "non-integer.*len" 16 _ = make([]byte, nil, 2) // ERROR "non-integer.*len" 17 _ = make([]byte, 1, nil) // ERROR "non-integer.*cap" 18 _ = make([]byte, true) // ERROR "non-integer.*len" 19 _ = make([]byte, "abc") // ERROR "non-integer.*len"
|
issue7675.go | 16 f(1, 0.5, "hello") // ERROR "not enough arguments" 18 f(1, 0.5, "hello", 4, 5) // ERROR "too many arguments" 19 g(1, 0.5) // ERROR "not enough arguments" 21 g(1, 0.5, []int{3, 4}...) // ERROR "not enough arguments" 23 g(1, 0.5, "hello", 4, []int{5, 6}...) // ERROR "too many arguments"
|
/prebuilts/go/linux-x86/test/ |
complit1.go | 21 _ = [3]int{1, 2, 3}[:] // ERROR "slice of unaddressable value" 22 _ = m[0][:] // ERROR "slice of unaddressable value" 23 _ = f()[:] // ERROR "slice of unaddressable value" 25 _ = 301[:] // ERROR "cannot slice" 26 _ = 3.1[:] // ERROR "cannot slice" 27 _ = true[:] // ERROR "cannot slice" 47 _ = &T{i: 0, f: 0, s: "", next: {}} // ERROR "missing type in composite literal|omit types within composite literal" 48 _ = &T{0, 0, "", {}} // ERROR "missing type in composite literal|omit types within composite literal" 49 _ = TP{i: 0, f: 0, s: "", next: {}} // ERROR "invalid pointer type" 50 _ = &Ti{} // ERROR "invalid pointer type [all...] |
writebarrier.go | 17 *x = z // ERROR "write barrier" 24 *x = z // ERROR "write barrier" 28 *x = *y // ERROR "write barrier" 31 *x = z // ERROR "write barrier" 38 *x = z // ERROR "write barrier" 45 *x = z // ERROR "write barrier" 52 *x = z // ERROR "write barrier" 56 *x = *y // ERROR "write barrier" 59 *x = z // ERROR "write barrier" 63 *x = y // ERROR "write barrier [all...] |
assign1.go | 108 a = a1 // ERROR "cannot use" 110 a1 = a // ERROR "cannot use" 115 b = b1 // ERROR "cannot use" 117 b1 = b // ERROR "cannot use" 122 c = c1 // ERROR "cannot use" 124 c1 = c // ERROR "cannot use" 129 f = f1 // ERROR "cannot use" 131 f1 = f // ERROR "cannot use" 143 m = m1 // ERROR "cannot use" 145 m1 = m // ERROR "cannot use [all...] |
makenew.go | 13 _ = make() // ERROR "missing argument" 14 _ = make(int) // ERROR "cannot make type" 15 _ = make([]int) // ERROR "missing len argument" 17 _ = new() // ERROR "missing argument" 18 _ = new(int, 2) // ERROR "too many arguments"
|
escape_array.go | 15 func bar(a, b *string) U { // ERROR "leaking param: a to result ~r2 level=0$" "leaking param: b to result ~r2 level=0$" 19 func foo(x U) U { // ERROR "leaking param: x to result ~r1 level=0$" 23 func bff(a, b *string) U { // ERROR "leaking param: a to result ~r2 level=0$" "leaking param: b to result ~r2 level=0$" 29 b := "dog" // ERROR "moved to heap: b$" 30 u := bff(&a, &b) // ERROR "tbff1 &a does not escape$" "tbff1 &b does not escape$" 32 return &b // ERROR "&b escapes to heap$" 37 a := "cat" // ERROR "moved to heap: a$" 38 b := "dog" // ERROR "moved to heap: b$" 39 u := bff(&a, &b) // ERROR "&a escapes to heap$" "&b escapes to heap$" 44 func car(x U) *string { // ERROR "leaking param: x to result ~r1 level=0$ [all...] |
/prebuilts/go/linux-x86/test/fixedbugs/ |
issue20298.go | 7 // Issue 20298: "imported and not used" error report order was non-deterministic. 14 "bufio" // ERROR "imported and not used" 15 "bytes" // ERROR "imported and not used" 16 "crypto/x509" // ERROR "imported and not used" 17 "flag" // ERROR "imported and not used" 18 "fmt" // ERROR "imported and not used" 19 "io" // ERROR "imported and not used" 20 "io/ioutil" // ERROR "imported and not used" 21 "log" // ERROR "imported and not used" 22 "math" // ERROR "imported and not used [all...] |
issue7150.go | 7 // issue 7150: array index out of bounds error off by one 12 _ = [0]int{-1: 50} // ERROR "index must be non-negative integer constant" 13 _ = [0]int{0: 0} // ERROR "index 0 out of bounds \[0:0\]" 14 _ = [0]int{5: 25} // ERROR "index 5 out of bounds \[0:0\]" 15 _ = [10]int{2: 10, 15: 30} // ERROR "index 15 out of bounds \[0:10\]" 16 _ = [10]int{5: 5, 1: 1, 12: 12} // ERROR "index 12 out of bounds \[0:10\]"
|
issue7223.go | 15 _ = make([]byte, nil) // ERROR "non-integer.*len" 16 _ = make([]byte, nil, 2) // ERROR "non-integer.*len" 17 _ = make([]byte, 1, nil) // ERROR "non-integer.*cap" 18 _ = make([]byte, true) // ERROR "non-integer.*len" 19 _ = make([]byte, "abc") // ERROR "non-integer.*len"
|
issue7675.go | 16 f(1, 0.5, "hello") // ERROR "not enough arguments" 18 f(1, 0.5, "hello", 4, 5) // ERROR "too many arguments" 19 g(1, 0.5) // ERROR "not enough arguments" 21 g(1, 0.5, []int{3, 4}...) // ERROR "not enough arguments" 23 g(1, 0.5, "hello", 4, []int{5, 6}...) // ERROR "too many arguments"
|
/prebuilts/go/darwin-x86/src/cmd/vet/testdata/ |
deadcode.go | 28 println() // ERROR "unreachable code" 35 println() // ERROR "unreachable code" 41 println() // ERROR "unreachable code" 56 println() // ERROR "unreachable code" 66 println() // ERROR "unreachable code" 74 println() // ERROR "unreachable code" 85 println() // ERROR "unreachable code" 99 println() // ERROR "unreachable code" 108 println() // ERROR "unreachable code" 114 { // ERROR "unreachable code [all...] |
/prebuilts/go/linux-x86/src/cmd/vet/testdata/ |
deadcode.go | 28 println() // ERROR "unreachable code" 35 println() // ERROR "unreachable code" 41 println() // ERROR "unreachable code" 56 println() // ERROR "unreachable code" 66 println() // ERROR "unreachable code" 74 println() // ERROR "unreachable code" 85 println() // ERROR "unreachable code" 99 println() // ERROR "unreachable code" 108 println() // ERROR "unreachable code" 114 { // ERROR "unreachable code [all...] |
/prebuilts/go/darwin-x86/test/fixedbugs/issue5957.dir/ |
c.go | 4 "./a" // ERROR "imported and not used: \x22a\x22 as surprise|imported and not used: surprise" 5 "./b" // ERROR "imported and not used: \x22b\x22 as surprise2|imported and not used: surprise2" 6 b "./b" // ERROR "imported and not used: \x22b\x22$|imported and not used: surprise2" 7 foo "math" // ERROR "imported and not used: \x22math\x22 as foo|imported and not used: math" 9 "strings" // ERROR "imported and not used: \x22strings\x22|imported and not used: strings"
|
/prebuilts/go/linux-x86/test/fixedbugs/issue5957.dir/ |
c.go | 4 "./a" // ERROR "imported and not used: \x22a\x22 as surprise|imported and not used: surprise" 5 "./b" // ERROR "imported and not used: \x22b\x22 as surprise2|imported and not used: surprise2" 6 b "./b" // ERROR "imported and not used: \x22b\x22$|imported and not used: surprise2" 7 foo "math" // ERROR "imported and not used: \x22math\x22 as foo|imported and not used: math" 9 "strings" // ERROR "imported and not used: \x22strings\x22|imported and not used: strings"
|
/prebuilts/go/darwin-x86/src/go/parser/ |
short_test.go | 60 `foo /* ERROR "expected 'package'" */ !`, 61 `package p; func f() { if { /* ERROR "expected operand" */ } };`, 62 `package p; func f() { if ; { /* ERROR "expected operand" */ } };`, 63 `package p; func f() { if f(); { /* ERROR "expected operand" */ } };`, 64 `package p; func f() { if _ /* ERROR "expected boolean expression" */ = range x; true {} };`, 65 `package p; func f() { switch _ /* ERROR "expected switch expression" */ = range x; true {} };`, 66 `package p; func f() { for _ = range x ; /* ERROR "expected '{'" */ ; {} };`, 67 `package p; func f() { for ; ; _ = range /* ERROR "expected operand" */ x {} };`, 68 `package p; func f() { for ; _ /* ERROR "expected boolean or range expression" */ = range x ; {} };`, 69 `package p; func f() { switch t = /* ERROR "expected ':=', found '='" */ t.(type) {} };` [all...] |
/prebuilts/go/darwin-x86/test/chan/ |
perm.go | 22 c = cr // ERROR "illegal types|incompatible|cannot" 23 c = cs // ERROR "illegal types|incompatible|cannot" 24 cr = cs // ERROR "illegal types|incompatible|cannot" 25 cs = cr // ERROR "illegal types|incompatible|cannot" 28 <-n // ERROR "receive from non-chan" 29 n <- 2 // ERROR "send to non-chan" 36 cr <- 0 // ERROR "send" 42 <-cs // ERROR "receive" 43 x, ok = <-cs // ERROR "receive" 51 case cr <- 0: // ERROR "send [all...] |
/prebuilts/go/darwin-x86/test/fixedbugs/issue10700.dir/ |
test.go | 24 x.Do() // ERROR "x\.Do undefined \(type \*Imported is pointer to interface, not interface\)" 25 x.do() // ERROR "x\.do undefined \(type \*Imported is pointer to interface, not interface\)" 27 x.Dont() // ERROR "x\.Dont undefined \(type \*Imported is pointer to interface, not interface\)" 28 (*x).Dont() // ERROR "\(\*x\)\.Dont undefined \(type Imported has no field or method Dont\)" 31 y.do() // ERROR "y\.do undefined \(type \*HasAMethod has no field or method do, but does have Do\)" 33 (*y).do() // ERROR "\(\*y\)\.do undefined \(type HasAMethod has no field or method do, but does have Do\)" 34 y.Dont() // ERROR "y\.Dont undefined \(type \*HasAMethod has no field or method Dont\)" 35 (*y).Dont() // ERROR "\(\*y\)\.Dont undefined \(type HasAMethod has no field or method Dont\)" 37 z.Do() // ERROR "z\.Do undefined \(type \*other\.Exported is pointer to interface, not interface\)" 38 z.do() // ERROR "z\.do undefined \(type \*other\.Exported is pointer to interface, not interface\) [all...] |