Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for dev (0.08 sec)

  1. src/archive/tar/stat_unix.go

    			major := uint32((dev & 0x00000000000fff00) >> 8)
    			major |= uint32((dev & 0xfffff00000000000) >> 32)
    			minor := uint32((dev & 0x00000000000000ff) >> 0)
    			minor |= uint32((dev & 0x00000ffffff00000) >> 12)
    			h.Devmajor, h.Devminor = int64(major), int64(minor)
    		case "darwin", "ios":
    			// Copied from golang.org/x/sys/unix/dev_darwin.go.
    			major := uint32((dev >> 24) & 0xff)
    			minor := uint32(dev & 0xffffff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/sizes_test.go

    	for _, tv := range types {
    		if ts, ok := tv.Type.(*types2.Struct); ok {
    			return ts
    		}
    	}
    	t.Fatalf("failed to find a struct type in src:\n%s\n", src)
    	return nil
    }
    
    // go.dev/issue/16316
    func TestMultipleSizeUse(t *testing.T) {
    	const src = `
    package main
    
    type S struct {
        i int
        b bool
        s string
        n int
    }
    `
    	ts := findStructType(t, src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api_test.go

    		// go.dev/issue/45096
    		{`package issue45096; func _[T interface{ ~int8 | ~int16 | ~int32 }](x T) { _ = x < 0 }`, `0`, `T`},
    
    		// go.dev/issue/47895
    		{`package p; import "unsafe"; type S struct { f int }; var s S; var _ = unsafe.Offsetof(s.f)`, `s.f`, `int`},
    
    		// go.dev/issue/50093
    		{`package u0a; func _[_ interface{int}]() {}`, `int`, `int`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/decl.go

    			// expression and not the current constant declaration. Use
    			// the constant identifier position for any errors during
    			// init expression evaluation since that is all we have
    			// (see issues go.dev/issue/42991, go.dev/issue/42992).
    			check.errpos = obj.pos
    		}
    		check.expr(nil, &x, init)
    	}
    	check.initConst(obj, &x)
    }
    
    func (check *Checker) varDecl(obj *Var, lhs []*Var, typ, init syntax.Expr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/testdata/issue31092.go

    // Copyright 2018 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.
    
    // Test cases for go.dev/issue/31092: Better synchronization of
    // parser after seeing an := rather than an = in a const,
    // type, or variable declaration.
    
    package p
    
    const _ /* ERROR unexpected := */ := 0
    type _ /* ERROR unexpected := */ := int
    var _ /* ERROR unexpected := */ := 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 12:49:49 UTC 2023
    - 529 bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/builtins_test.go

    	{"make", `_ = make([]int, 10)`, `func([]int, int) []int`},
    	{"make", `type T []byte; _ = make(T, 10, 20)`, `func(p.T, int, int) p.T`},
    
    	// go.dev/issue/37349
    	{"make", `              _ = make([]int, 0   )`, `func([]int, int) []int`},
    	{"make", `var l    int; _ = make([]int, l   )`, `func([]int, int) []int`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/compiler_internal.go

    // license that can be found in the LICENSE file.
    
    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"fmt"
    )
    
    // This file should not be copied to go/types.  See go.dev/issue/67477
    
    // RenameResult takes an array of (result) fields and an index, and if the indexed field
    // does not have a name and if the result in the signature also does not have a name,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/unify.go

    package types2
    
    import (
    	"bytes"
    	"fmt"
    	"sort"
    	"strings"
    )
    
    const (
    	// Upper limit for recursion depth. Used to catch infinite recursions
    	// due to implementation issues (e.g., see issues go.dev/issue/48619, go.dev/issue/48656).
    	unificationDepthLimit = 50
    
    	// Whether to panic when unificationDepthLimit is reached.
    	// If disabled, a recursion depth overflow results in a (quiet)
    	// unification failure.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/return.go

    			}
    
    		}
    		return true
    
    	case *syntax.ForStmt:
    		if _, ok := s.Init.(*syntax.RangeClause); ok {
    			// Range clauses guarantee that the loop terminates,
    			// so the loop is not a terminating statement. See go.dev/issue/49003.
    			break
    		}
    		if s.Cond == nil && !hasBreak(s.Body, label, true) {
    			return true
    		}
    	}
    
    	return false
    }
    
    func (check *Checker) isTerminatingList(list []syntax.Stmt, label string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typexpr.go

    		}
    	}
    
    	check.recordUse(e, obj)
    
    	// If we want a type but don't have one, stop right here and avoid potential problems
    	// with missing underlying types. This also gives better error messages in some cases
    	// (see go.dev/issue/65344).
    	_, gotType := obj.(*TypeName)
    	if !gotType && wantType {
    		check.errorf(e, NotAType, "%s is not a type", obj.Name())
    		// avoid "declared but not used" errors
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top