Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 860 for incorrectly (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. test/fixedbugs/issue4909a.go

    // errorcheck
    
    // 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 4909: compiler incorrectly accepts unsafe.Offsetof(t.x)
    // where x is a field of an embedded pointer field.
    
    package p
    
    import (
    	"unsafe"
    )
    
    type T struct {
    	A int
    	*B
    }
    
    func (t T) Method() {}
    
    type B struct {
    	X, Y int
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:59:57 UTC 2020
    - 839 bytes
    - Viewed (0)
Back to top