Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 400 for original (0.23 sec)

  1. src/cmd/go/internal/par/work_test.go

    	v = cache.Do(2, func() int { n++; return n })
    	if v != 3 {
    		t.Fatalf("cache.Do(2) did not run f")
    	}
    	v = cache.Do(1, func() int { n++; return n })
    	if v != 2 {
    		t.Fatalf("cache.Do(1) did not returned saved value from original cache.Do(1)")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 03 09:56:24 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/toolchain/umask_unix.go

    func sysWriteBits() fs.FileMode {
    	// Read current umask. There's no way to read it without also setting it,
    	// so set it conservatively and then restore the original one.
    	m := syscall.Umask(0o777)
    	syscall.Umask(m)    // restore bits
    	if m&0o22 == 0o22 { // group and world are unwritable by default
    		return 0o700
    	}
    	if m&0o2 == 0o2 { // group is writable by default, but not world
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 20 15:44:08 UTC 2023
    - 896 bytes
    - Viewed (0)
  3. src/cmd/internal/pkgpath/pkgpath.go

    		return nil, err
    	}
    
    	command := exec.Command(cmd, "-S", "-o", "-", gofilename)
    	buf, err := command.Output()
    	if err != nil {
    		return nil, err
    	}
    
    	// Original mangling: go.l__ufer.Run
    	// Mangling v2: go.l..u00e4ufer.Run
    	// Mangling v3: go_0l_u00e4ufer.Run
    	if bytes.Contains(buf, []byte("go_0l_u00e4ufer.Run")) {
    		return toSymbolV3, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/issues1.go

    // parameter's type set.
    type T1[P interface{~uint}] struct{}
    
    func _[P any]() {
        _ = T1[P /* ERROR "P does not satisfy interface{~uint}" */ ]{}
    }
    
    // This is the original (simplified) program causing the same issue.
    type Unsigned interface {
    	~uint
    }
    
    type T2[U Unsigned] struct {
        s U
    }
    
    func (u T2[U]) Add1() U {
        return u.s + 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. test/typeparam/issue58513.go

    // function literals to plumb sub-dictionaries appropriately.
    // However, when these expressions are inlined, we were constructing
    // the function literal bodies with the inline-adjusted positions
    // instead of the original (inline-free) positions, which could lead
    // to infinite loops when unwinding the stack.
    
    package main
    
    import "runtime"
    
    func assert[_ any]() {
    	panic(0)
    }
    
    func Assert[To any]() func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 23:07:49 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/regalloc_test.go

    		),
    	)
    	flagalloc(f.f)
    	regalloc(f.f)
    	checkFunc(f.f)
    }
    
    // Test to make sure G register is never reloaded from spill (spill of G is okay)
    // See #25504
    func TestNoGetgLoadReg(t *testing.T) {
    	/*
    		Original:
    		func fff3(i int) *g {
    			gee := getg()
    			if i == 0 {
    				fff()
    			}
    			return gee // here
    		}
    	*/
    	c := testConfigARM64(t)
    	f := c.Fun("b1",
    		Bloc("b1",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. src/math/log1p.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package math
    
    // The original C code, the long comment, and the constants
    // below are from FreeBSD's /usr/src/lib/msun/src/s_log1p.c
    // and came with this notice. The go code is a simplified
    // version of the original C.
    //
    // ====================================================
    // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. src/text/template/parse/node.go

    	// tree returns the containing *Tree.
    	// It is unexported so all implementations of Node are in this package.
    	tree() *Tree
    	// writeTo writes the String output to the builder.
    	writeTo(*strings.Builder)
    }
    
    // NodeType identifies the type of a parse tree node.
    type NodeType int
    
    // Pos represents a byte position in the original input text from which
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. test/alias2.go

    func (A0) m1()  {} // ERROR "T0\.m1 already declared|redefinition of .m1."
    func (A0) m2()  {}
    
    // Type aliases and the original type name can be used interchangeably.
    var _ A0 = T0{}
    var _ T0 = A0{}
    
    // But aliases and original types cannot be used with new types based on them.
    var _ N0 = T0{} // ERROR "cannot use T0{} \(value of type T0\) as N0 value in variable declaration"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:09:14 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. src/math/sqrt.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package math
    
    // The original C code and the long comment below are
    // from FreeBSD's /usr/src/lib/msun/src/e_sqrt.c and
    // came with this notice. The go code is a simplified
    // version of the original C.
    //
    // ====================================================
    // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 15 17:07:57 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top