Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for bad40 (0.06 sec)

  1. test/live2.go

    //go:noescape
    func useT40(*T40)
    
    type T40 struct {
    	m map[int]int
    }
    
    func newT40() *T40 {
    	ret := T40{}
    	ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
    	return &ret
    }
    
    func bad40() {
    	t := newT40() // ERROR "stack object ret T40$" "stack object .autotmp_[0-9]+ runtime.hmap$"
    	printnl()     // ERROR "live at call to printnl: ret$"
    	useT40(t)
    }
    
    func good40() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 23:29:33 UTC 2023
    - 953 bytes
    - Viewed (0)
  2. test/live.go

    	m map[int]int
    }
    
    //go:noescape
    func useT40(*T40)
    
    func newT40() *T40 {
    	ret := T40{}
    	ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
    	return &ret
    }
    
    func bad40() {
    	t := newT40()
    	_ = t
    	printnl()
    }
    
    func good40() {
    	ret := T40{}              // ERROR "stack object ret T40$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18K bytes
    - Viewed (0)
  3. test/live_regabi.go

    	m map[int]int
    }
    
    //go:noescape
    func useT40(*T40)
    
    func newT40() *T40 {
    	ret := T40{}
    	ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
    	return &ret
    }
    
    func bad40() {
    	t := newT40()
    	_ = t
    	printnl()
    }
    
    func good40() {
    	ret := T40{}              // ERROR "stack object ret T40$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  4. test/fixedbugs/issue9006.go

    	case NewT1(1):
    		panic("bad1")
    	case NewT1(0):
    		// ok
    	default:
    		panic("bad2")
    	}
    
    	switch T2(0) {
    	case NewT2(2):
    		panic("bad3")
    	case NewT2(0):
    		// ok
    	default:
    		panic("bad4")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 520 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/cmd/bisect/main.go

    		b.Fatalf("target fails inconsistently")
    	}
    	bad0 := b.search(r0)
    	if bad0 == nil {
    		// Search failed due to MaxSet limit.
    		return nil
    	}
    	b.Add = b.Add[:old]
    
    	// Adding the specific match we found in 0suffix, recurse to narrow down 1suffix.
    	b.Add = append(b.Add[:old], bad0...)
    	r1 = b.Run("1" + suffix)
    	if r1.Success {
    		// 1suffix + b.Add + bad0 = bad0 + b.Add + 1suffix is what b.search(r0) reported as a failure.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 18:11:19 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  6. test/convlit.go

    var s string
    var bad1 string = 1  // ERROR "conver|incompatible|invalid|cannot"
    var bad2 = s + 1     // ERROR "conver|incompatible|invalid|cannot"
    var bad3 = s + 'a'   // ERROR "conver|incompatible|invalid|cannot"
    var bad4 = "a" + 1   // ERROR "literals|incompatible|convert|invalid"
    var bad5 = "a" + 'a' // ERROR "literals|incompatible|convert|invalid"
    
    var bad6 int = 1.5       // ERROR "convert|truncate"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go

    			"metadata": map[string]interface{}{
    				"name": "good",
    				"Name": "bad1",
    				"nAme": "bad2",
    				"naMe": "bad3",
    				"namE": "bad4",
    
    				"namespace": "good",
    				"Namespace": "bad1",
    				"nAmespace": "bad2",
    				"naMespace": "bad3",
    				"namEspace": "bad4",
    
    				"creationTimestamp": "a",
    			},
    		}}
    
    		meta, _, err := GetObjectMeta(u.Object, true)
    		if err != nil {
    			t.Fatal(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. hack/tools/go.sum

    github.com/go-toolsmith/astcopy v1.1.0 h1:YGwBN0WM+ekI/6SS6+52zLDEf8Yvp3n2seZITCUBt5s=
    github.com/go-toolsmith/astcopy v1.1.0/go.mod h1:hXM6gan18VA1T/daUEHCFcYiW8Ai1tIwIzHY6srfEAw=
    github.com/go-toolsmith/astequal v1.0.3/go.mod h1:9Ai4UglvtR+4up+bAD4+hCj7iTo4m/OXVTSLnCyTAx4=
    github.com/go-toolsmith/astequal v1.1.0/go.mod h1:sedf7VIdCL22LD8qIvv7Nn9MuWJruQA/ysswh64lffQ=
    github.com/go-toolsmith/astequal v1.2.0 h1:3Fs3CYZ1k9Vo4FzFhwwewC3CHISHDnVUPC4x0bI2+Cw=
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 93.1K bytes
    - Viewed (0)
  9. doc/go_spec.html

    type Bad2 interface {
    	Bad1
    }
    
    // illegal: Bad3 may not embed a union containing Bad3
    type Bad3 interface {
    	~int | ~string | Bad3
    }
    
    // illegal: Bad4 may not embed an array containing Bad4 as element type
    type Bad4 interface {
    	[10]Bad4
    }
    </pre>
    
    <h4 id="Implementing_an_interface">Implementing an interface</h4>
    
    <p>
    A type <code>T</code> implements an interface <code>I</code> if
    </p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top