- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,884 for incorrectly (0.13 sec)
-
test/fixedbugs/issue22781.go
} func main() { debug.SetGCPercent(1) for i := 0; i < 100000; i++ { m := make(map[*T]struct{}, 0) for j := 0; j < 20; j++ { // During the call to mapassign_fast64, the key argument // was incorrectly treated as a uint64. If the stack was // scanned during that call, the only pointer to k was // missed, leading to *k being collected prematurely. k := new(T) m[k] = struct{}{} } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 22 04:30:27 UTC 2017 - 680 bytes - Viewed (0) -
test/fixedbugs/bug450.go
// run // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 3899: 8g incorrectly thinks a variable is // "set and not used" and elides an assignment, causing // variables to end up with wrong data. // // The reason is a miscalculation of variable width. package main func bar(f func()) { f() } func foo() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:10:19 UTC 2022 - 496 bytes - Viewed (0) -
test/fixedbugs/issue15042.go
// run // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Exchanging two struct fields was compiled incorrectly. package main type S struct { i int } func F(c bool, s1, s2 S) (int, int) { if c { s1.i, s2.i = s2.i, s1.i } return s1.i, s2.i } func main() { i, j := F(true, S{1}, S{20})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 450 bytes - Viewed (0) -
test/fixedbugs/issue31412a.go
// compile // Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This code was incorrectly flagged as erroneous by gccgo. package main type Name string type EFunc func(int) int func Register(f EFunc, names ...Name) int { return f(len(names)) } const ( B Name = "B" ) func RegisterIt() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:17:26 UTC 2019 - 531 bytes - Viewed (0) -
test/fixedbugs/issue50671.go
// run // Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 50671: sign extension eliminated incorrectly on MIPS64. package main //go:noinline func F(x int32) (float64, int64) { a := float64(x) b := int64(x) return a, b } var a, b, c float64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 19 15:45:58 UTC 2022 - 599 bytes - Viewed (0) -
test/fixedbugs/bug494.go
// run // Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Gccgo incorrectly executed functions multiple times when they // appeared in a composite literal that required a conversion between // different interface types. package main type MyInt int var c MyInt func (c *MyInt) S(i int) { *c = MyInt(i) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 18 02:45:00 UTC 2014 - 695 bytes - Viewed (0) -
test/fixedbugs/issue5607.go
// run // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 5607: generation of init() function incorrectly // uses initializers of blank variables inside closures. package main var Test = func() { var mymap = map[string]string{"a": "b"} var innerTest = func() { // Used to crash trying to compile this line as
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Jun 02 21:54:34 UTC 2013 - 777 bytes - Viewed (0) -
test/fixedbugs/issue23912.go
// compile // Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // A couple of aliases cases that gccgo incorrectly gave errors for. package p func F1() { type E = struct{} type X struct{} var x X var y E = x _ = y } func F2() { type E = struct{} type S []E type T []struct{} type X struct{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 01:57:14 UTC 2018 - 516 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/meta_test.go
} if metav1.HasObjectMetaSystemFieldValues(objMeta) { t.Errorf("the resource does not have all fields yet populated, but incorrectly reports it does") } FillObjectMetaSystemFields(&resource) if !metav1.HasObjectMetaSystemFieldValues(objMeta) { t.Errorf("the resource does have all fields populated, but incorrectly reports it does not") } } func TestEnsureObjectNamespaceMatchesRequestNamespace(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 19 01:47:23 UTC 2022 - 3.8K bytes - Viewed (0) -
pkg/volume/metrics_du_test.go
expected := &Metrics{} if !volumetest.MetricsEqualIgnoreTimestamp(actual, expected) { t.Errorf("Expected empty Metrics from incorrectly initialized MetricsDu, actual %v", *actual) } if err == nil { t.Errorf("Expected error when calling GetMetrics on incorrectly initialized MetricsDu, actual nil") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 3.9K bytes - Viewed (0)