Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for foo78 (0.12 sec)

  1. test/escape2n.go

    	j := 0
    	myprint1(nil, &j) // ERROR "... argument does not escape$"
    }
    
    func foo78(z int) *int { // ERROR "moved to heap: z$"
    	return &z
    }
    
    func foo78a(z int) *int { // ERROR "moved to heap: z$"
    	y := &z
    	x := &y
    	return *x // really return y
    }
    
    func foo79() *int {
    	return new(int) // ERROR "new\(int\) escapes to heap$"
    }
    
    func foo80() *int {
    	var z *int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  2. test/codegen/issue22703.go

    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 03 20:20:54 UTC 2018
    - 5.4K bytes
    - Viewed (0)
  3. test/escape2.go

    	j := 0
    	myprint1(nil, &j) // ERROR "... argument does not escape$"
    }
    
    func foo78(z int) *int { // ERROR "moved to heap: z$"
    	return &z
    }
    
    func foo78a(z int) *int { // ERROR "moved to heap: z$"
    	y := &z
    	x := &y
    	return *x // really return y
    }
    
    func foo79() *int {
    	return new(int) // ERROR "new\(int\) escapes to heap$"
    }
    
    func foo80() *int {
    	var z *int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-name-bug.pbtxt

      function {
        signature {
          name: "foo5"
        }
      }
      function {
        signature {
          name: "foo6"
        }
      }
      function {
        signature {
          name: "foo7"
        }
      }
      function {
        signature {
          name: "foo8"
        }
      }
      function {
        signature {
          name: "foo9"
        }
      }
      function {
        signature {
          name: "foo10"
        }
      }
      function {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. src/internal/types/testdata/fixedbugs/issue39634.go

    func t4[T Numeric4](s[]T){if( /* ERROR "non-boolean" */ 0){*s /* ERROR "cannot indirect" */ [0]}}
    
    // crash 7
    type foo7 interface { bar() }
    type x7[A any] struct{ foo7 }
    func main7() { var _ foo7 = x7[int]{} }
    
    // crash 8
    type foo8[A any] interface { ~A /* ERROR "cannot be a type parameter" */ }
    func bar8[A foo8[A]](a A) {}
    
    // crash 9
    type foo9[A any] interface { foo9 /* ERROR "invalid recursive type" */ [A] }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. pkg/cache/cache_test.go

    	c.Set("foo6", "bar")
    	c.Set("foo7", "bar")
    
    	wg := new(sync.WaitGroup)
    	workers := runtime.NumCPU()
    	each := b.N / workers
    	wg.Add(workers)
    
    	b.ResetTimer()
    	for i := 0; i < workers; i++ {
    		go func() {
    			for j := 0; j < each; j++ {
    				c.Get("foo1")
    				c.Get("foo2")
    				c.Get("foo3")
    				c.Get("foo5")
    				c.Get("foo6")
    				c.Get("foo7")
    				c.Get("foo8") // doesn't exist
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 15:56:49 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  7. pkg/apis/storage/validation/validation_test.go

    		// Driver name length > 63
    		ObjectMeta: metav1.ObjectMeta{Name: "foo7"},
    		Spec: storage.CSINodeSpec{
    			Drivers: []storage.CSINodeDriver{{
    				Name:         longName,
    				NodeID:       nodeID,
    				TopologyKeys: []string{"company.com/zone1", "company.com/zone2"},
    			}},
    		},
    	}, {
    		// No driver name
    		ObjectMeta: metav1.ObjectMeta{Name: "foo8"},
    		Spec: storage.CSINodeSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    				makeGCContainer("foo5", "bar5", 0, 0, runtimeapi.ContainerState_CONTAINER_EXITED),
    				makeGCContainer("foo6", "bar6", 2, 2, runtimeapi.ContainerState_CONTAINER_EXITED),
    				makeGCContainer("foo7", "bar7", 1, 1, runtimeapi.ContainerState_CONTAINER_EXITED),
    			},
    			remain:               []int{0, 2, 4, 6, 8, 9},
    			evictTerminatingPods: false,
    			allSourcesReady:      true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. pkg/printers/internalversion/printers_test.go

    			node: api.Node{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo7"},
    				Status:     api.NodeStatus{Conditions: []api.NodeCondition{{}}},
    			},
    			// Columns: Name, Status, Roles, Age, KubeletVersion
    			expected: []metav1.TableRow{{Cells: []interface{}{"foo7", "Unknown", "<none>", "<unknown>", ""}}},
    		},
    		{
    			node: api.Node{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo8"},
    				Spec:       api.NodeSpec{Unschedulable: true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
Back to top