Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 336 for II (0.02 sec)

  1. src/internal/types/testdata/check/stmt0.go

    	for range a {}
    	for i := range a {
    		var ii int
    		ii = i
    		_ = ii
    	}
    	for i, x := range a {
    		var ii int
    		ii = i
    		_ = ii
    		var xx float64
    		xx = x /* ERRORx `cannot use .* in assignment` */
    		_ = xx
    	}
    	var ii int
    	var xx float32
    	for ii, xx = range a {}
    	_, _ = ii, xx
    
    	for range b {}
    	for i := range b {
    		var ii int
    		ii = i
    		_ = ii
    	}
    	for i, x := range b {
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-30 19:19
    - 19K bytes
    - Viewed (0)
  2. test/fixedbugs/issue17551.go

    package main
    
    import "fmt"
    
    func main() {
    	_, x := X()
    	fmt.Printf("x = %v\n", x)
    }
    
    func X() (i int, ok bool) {
    	ii := int(1)
    	return ii, 0 <= ii && ii <= 0x7fffffff
    Registered: 2024-06-12 16:32
    - Last Modified: 2016-10-24 22:57
    - 416 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/dwarfgen/dwinl.go

    	pos := base.Ctxt.PosTable.Pos(xpos)
    	if b := pos.Base(); b != nil {
    		ii := b.InliningIndex()
    		if ii >= 0 {
    			return ii
    		}
    	}
    	return -1
    }
    
    func addRange(calls []dwarf.InlCall, start, end int64, ii int, imap map[int]int) {
    	if start == -1 {
    		panic("bad range start")
    	}
    	if end == -1 {
    		panic("bad range end")
    	}
    	if ii == -1 {
    		return
    	}
    	if start == end {
    		return
    	}
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-02-26 20:45
    - 12.8K bytes
    - Viewed (0)
  4. src/runtime/closure_test.go

    package runtime_test
    
    import "testing"
    
    var s int
    
    func BenchmarkCallClosure(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		s += func(ii int) int { return 2 * ii }(i)
    	}
    }
    
    func BenchmarkCallClosure1(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		j := i
    		s += func(ii int) int { return 2*ii + j }(i)
    	}
    }
    
    var ss *int
    
    func BenchmarkCallClosure2(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		j := i
    Registered: 2024-06-12 16:32
    - Last Modified: 2020-08-17 09:45
    - 937 bytes
    - Viewed (0)
  5. test/convert4.go

    	)
    
    	// Test with named types
    	type Slice []int
    	type Int4 [4]int
    	type PInt4 *[4]int
    	ii := make(Slice, 4)
    	if p := (*Int4)(ii); &p[0] != &ii[0] {
    		panic("*Int4 conversion failed")
    	}
    	if p := PInt4(ii); &p[0] != &ii[0] {
    		panic("PInt4 conversion failed")
    	}
    }
    
    // test static variable conversion
    
    var (
    	ss  = make([]string, 10)
    	s5  = (*[5]string)(ss)
    Registered: 2024-06-12 16:32
    - Last Modified: 2022-09-19 18:58
    - 2.1K bytes
    - Viewed (0)
  6. tools/istio-iptables/pkg/log/nflog.go

    		if attrs.GID != nil {
    			gid = *attrs.GID
    		}
    		inDev, outDev := "", ""
    		if attrs.InDev != nil {
    			ii, err := net.InterfaceByIndex(int(*attrs.InDev))
    			if err == nil {
    				inDev = ii.Name
    			}
    		}
    		if attrs.OutDev != nil {
    			ii, err := net.InterfaceByIndex(int(*attrs.OutDev))
    			if err == nil {
    				outDev = ii.Name
    			}
    		}
    		iptablesTrace.WithLabels(
    			"command", prefix,
    			"uid", uid,
    			"gid", gid,
    Registered: 2024-06-14 15:00
    - Last Modified: 2024-06-06 15:59
    - 2.8K bytes
    - Viewed (0)
  7. test/fixedbugs/issue7884.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "fmt"
    
    func main() {
    	var ii interface{} = 5
    	zz, err := ii.(interface{})
    	fmt.Println(zz, err)
    Registered: 2024-06-12 16:32
    - Last Modified: 2016-05-02 13:43
    - 291 bytes
    - Viewed (0)
  8. src/log/slog/value_access_benchmark_test.go

    		DurationValue(time.Second),
    		AnyValue(b),
    	}
    	var (
    		ii int64
    		s  string
    		bb bool
    		u  uint64
    		d  time.Duration
    		f  float64
    		a  any
    	)
    	b.Run("switch-checked", func(b *testing.B) {
    		for i := 0; i < b.N; i++ {
    			for _, v := range vs {
    				switch v.Kind() {
    				case KindString:
    					s = v.String()
    				case KindInt64:
    					ii = v.Int64()
    				case KindUint64:
    					u = v.Uint64()
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-03-21 20:55
    - 4.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/TestLocking.java

        public void run()
        {
            try {
                SmbFile f = new SmbFile(url);
                SmbFile d = new SmbFile(f.getParent());
                byte[] buf = new byte[1024];
    
                for (int ii = 0; ii < numIter; ii++) {
    
                    synchronized (this) {
                        ltime = System.currentTimeMillis();
                        wait();
                    }
    
                    try {
    Registered: 2024-06-12 15:45
    - Last Modified: 2019-03-22 21:10
    - 3.4K bytes
    - Viewed (0)
  10. test/interface/explicit.go

    func (Int) M(float64) {}
    
    var _ = m.(Int) // ERROR "impossible type assertion"
    
    var _ = m.(X) // ERROR "pointer receiver"
    
    var ii int
    var jj Int
    
    var m1 M = ii // ERROR "incompatible|missing"
    var m2 M = jj // ERROR "incompatible|wrong type for method M"
    
    var m3 = M(ii) // ERROR "invalid|missing|cannot convert"
    var m4 = M(jj) // ERROR "invalid|wrong type for M method|cannot convert"
    
    type B1 interface {
    Registered: 2024-06-12 16:32
    - Last Modified: 2022-09-24 17:04
    - 2K bytes
    - Viewed (0)
Back to top