Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for slicelit (0.22 sec)

  1. src/runtime/symtab_test.go

    		{"arrayLit[0]", arrayLit[0], 20},
    		{"arrayLit[1]", arrayLit[1], 21},
    		{"arrayLit[2]", arrayLit[2], 21},
    		{"arrayLit[3]", arrayLit[3], 22},
    
    		{"sliceLit[0]", sliceLit[0], 24},
    		{"sliceLit[1]", sliceLit[1], 25},
    		{"sliceLit[2]", sliceLit[2], 25},
    		{"sliceLit[3]", sliceLit[3], 26},
    
    		{"mapLit[29]", mapLit[29], 29},
    		{"mapLit[30]", mapLit[30], 30},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 21:46:33 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  2. test/fixedbugs/issue8017.go

    // 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.
    
    // Issues 8017 and 8058: walk modifies nodes generated
    // by slicelit and causes an internal error afterwards
    // when gen_as_init parses it back.
    
    package main
    
    func F() {
    	var ch chan int
    	select {
    	case <-ch:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 540 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/complit.go

    			// Discard.
    			continue
    		}
    
    		switch value.Op() {
    		case ir.OSLICELIT:
    			value := value.(*ir.CompLitExpr)
    			if (kind == initKindStatic && ctxt == inNonInitFunction) || (kind == initKindDynamic && ctxt == inInitFunction) {
    				var sinit ir.Nodes
    				slicelit(ctxt, value, a, &sinit)
    				if kind == initKindStatic {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  4. src/go/parser/parser_test.go

    	{name: "interface", format: "package main; var x «interface { M() «int» }»", scope: true, scopeMultiplier: 2}, // Scopes: InterfaceType, FuncType
    	{name: "map", format: "package main; var x «map[int]»int"},
    	{name: "slicelit", format: "package main; var x = «[]any{«»}»", parseMultiplier: 2},             // Parser nodes: UnaryExpr, CompositeLit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  5. test/fixedbugs/notinheap3.go

    	_ = append(v1s, v1s...) // no barrier
    	_ = append(v2s, v2s...) // ERROR "write barrier"
    }
    
    // Slice clearing
    
    var (
    	sliceIH  []*ih
    	sliceNIH []*nih
    )
    
    func sliceClear() {
    	for i := range sliceIH {
    		sliceIH[i] = nil // ERROR "write barrier"
    	}
    	for i := range sliceNIH {
    		sliceNIH[i] = nil // no barrier
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 17:46:15 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  6. test/sliceopt.go

    Austin Clements <******@****.***> 1515619738 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 08 22:25:25 UTC 2018
    - 735 bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters_test.go

    			if expectResources == nil {
    				expectResources = resources{}
    			}
    			require.Equal(tCtx, expectResources, actualResources)
    		})
    	}
    }
    
    type sliceList []*resourceapi.ResourceSlice
    
    func (l sliceList) List(selector labels.Selector) ([]*resourceapi.ResourceSlice, error) {
    	return l, nil
    }
    
    type sliceError string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  8. test/gcgort.go

    	case a.pointerT == nil:
    		return errors.New(a.name + " missing pointerT")
    	case a.arrayT == nil:
    		return errors.New(a.name + " missing arrayT")
    	case a.sliceT == nil:
    		return errors.New(a.name + " missing sliceT")
    	case a.mapT == nil:
    		return errors.New(a.name + " missing mapT")
    	case a.mapPointerKeyT == nil:
    		return errors.New(a.name + " missing mapPointerKeyT")
    	case a.chanT == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 21:15:48 UTC 2018
    - 34.5K bytes
    - Viewed (0)
  9. test/typeparam/sliceimp.dir/main.go

    }
    
    func TestMin() {
    	s1 := []int{1, 2, 3, -5}
    	if got, want := a.SliceMin(s1), -5; got != want {
    		panic(fmt.Sprintf("a.Min(%v) = %d, want %d", s1, got, want))
    	}
    
    	s2 := []string{"aaa", "a", "aa", "aaaa"}
    	if got, want := a.SliceMin(s2), "a"; got != want {
    		panic(fmt.Sprintf("a.Min(%v) = %q, want %q", s2, got, want))
    	}
    
    	if got, want := a.SliceMin(s2[:0]), ""; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  10. doc/next/6-stdlib/99-minor/reflect/61308.md

    The [SliceAt(typ Type, p unsafe.Pointer, len int)] function
    returns a Value representing a slice whose underlying array starts
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 20:57:18 UTC 2024
    - 170 bytes
    - Viewed (0)
Back to top