Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for error (0.15 sec)

  1. src/cmd/api/testdata/src/pkg/p1/p1.go

    )
    
    // Variables from function calls.
    var (
    	V = ptwo.F()
    	// Deprecated: use WError.
    	VError = BarE()
    	V1     = Bar1(1, 2, 3)
    	V2     = ptwo.G()
    )
    
    // Variables with conversions:
    var (
    	StrConv  = string("foo")
    	ByteConv = []byte("foo")
    )
    
    var ChecksumError = ptwo.NewError("gzip checksum error")
    
    const B0 = 2
    const StrConst = "foo"
    const FloatConst = 1.5
    
    type myInt int
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/swig/swig_test.go

    		cmd.Env = append(cmd.Environ(),
    			"CGO_CFLAGS="+cflags,
    			"CGO_CXXFLAGS="+cflags,
    			"CGO_LDFLAGS="+cflags)
    	}
    	out, err := cmd.CombinedOutput()
    	if string(out) != "OK\n" {
    		t.Errorf("%s", string(out))
    	}
    	if err != nil {
    		t.Errorf("%s", err)
    	}
    }
    
    func mustHaveCxx(t *testing.T) {
    	// Ask the go tool for the CXX it's configured to use.
    	cxx, err := exec.Command("go", "env", "CXX").CombinedOutput()
    	if err != nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  3. src/cmd/api/testdata/src/pkg/p3/golden.txt

    pkg p3, func BadHop(int, int, int) (bool, bool, *ThirdBase, *ThirdBase, error)
    pkg p3, method (*ThirdBase) GoodPlayer() (int, int, int)
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Jan 29 00:45:45 GMT 2013
    - 166 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue26743.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    // Issue 26743: typedef of uint leads to inconsistent typedefs error.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 356 bytes
    - Viewed (0)
  5. src/bufio/export_test.go

    		panic("bad max token size")
    	}
    	if n < len(s.buf) {
    		s.buf = make([]byte, n)
    	}
    	s.maxTokenSize = n
    }
    
    // ErrOrEOF is like Err, but returns EOF. Used to test a corner case.
    func (s *Scanner) ErrOrEOF() error {
    	return s.err
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 17:17:44 GMT 2017
    - 597 bytes
    - Viewed (0)
  6. src/cmd/cgo/ast_go118.go

    package main
    
    import (
    	"go/ast"
    	"go/token"
    )
    
    func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) {
    	switch n := x.(type) {
    	default:
    		error_(token.NoPos, "unexpected type %T in walk", x)
    		panic("unexpected type")
    
    	case *ast.IndexListExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		f.walk(n.Indices, ctxExpr, visit)
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Nov 30 21:45:10 GMT 2022
    - 730 bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/01-pkgsite.yml

        validations:
          required: false
      - type: textarea
        id: what-did-you-do
        attributes:
          label: "What did you do?"
          description: "If possible, provide a recipe for reproducing the error. Starting with a Private/Incognito tab/window may help rule out problematic browser extensions."
        validations:
          required: true
      - type: textarea
        id: actual-behavior
        attributes:
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/pseudo_test.go

    			parser.lineNum++
    			if !parser.pseudo(test.pseudo, tokenize(test.operands)) {
    				t.Fatalf("Wrong pseudo-instruction: %s", test.pseudo)
    			}
    			errorLine := buf.String()
    			if test.expected != errorLine {
    				t.Errorf("Unexpected error %q; expected %q", errorLine, test.expected)
    			}
    			buf.Reset()
    		}
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue18146.go

    				time.Sleep(time.Millisecond)
    				continue
    			}
    
    			t.Error(err)
    			return
    		}
    		cmds = append(cmds, cmd)
    	}
    
    	failures := 0
    	for _, cmd := range cmds {
    		err := cmd.Wait()
    		if err == nil {
    			continue
    		}
    
    		t.Errorf("syscall.Exec failed: %v\n%s", err, cmd.Stdout)
    		failures++
    	}
    
    	if failures > 0 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  10. src/arena/arena.go

    limits the impact of these use-after-free bugs by preventing reuse of freed
    memory regions until the garbage collector is able to determine that it is
    safe. Typically, a use-after-free bug will result in a fault and a helpful
    error message, but this package reserves the right to not force a fault on
    freed memory. That means a valid implementation of this package is to just
    allocate all memory the way the runtime normally would, and in fact, it
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
Back to top