Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 53 for badexit (0.14 sec)

  1. src/os/exec/exec_test.go

    var helperCommands = map[string]func(...string){
    	"echo":          cmdEcho,
    	"echoenv":       cmdEchoEnv,
    	"cat":           cmdCat,
    	"pipetest":      cmdPipeTest,
    	"stdinClose":    cmdStdinClose,
    	"exit":          cmdExit,
    	"describefiles": cmdDescribeFiles,
    	"stderrfail":    cmdStderrFail,
    	"yes":           cmdYes,
    	"hang":          cmdHang,
    }
    
    func cmdEcho(args ...string) {
    	iargs := []any{}
    	for _, s := range args {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/printer.go

    	// 	//p.print(newline)
    	// }
    }
    
    func (p *printer) printRawNode(n Node) {
    	switch n := n.(type) {
    	case nil:
    		// we should not reach here but don't crash
    
    	// expressions and types
    	case *BadExpr:
    		p.print(_Name, "<bad expr>")
    
    	case *Name:
    		p.print(_Name, n.Value) // _Name requires actual value following immediately
    
    	case *BasicLit:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  3. src/go/parser/parser_test.go

    		t.Errorf("for File.FileEnd, got %s, want %s", got, want)
    	}
    }
    
    // TestIncompleteSelection ensures that an incomplete selector
    // expression is parsed as a (blank) *ast.SelectorExpr, not a
    // *ast.BadExpr.
    func TestIncompleteSelection(t *testing.T) {
    	for _, src := range []string{
    		"package p; var _ = fmt.",             // at EOF
    		"package p; var _ = fmt.\ntype X int", // not at EOF
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/resolver.go

    		rtyp = ptyp.X
    		if unpackParams {
    			for _, arg := range syntax.UnpackListExpr(ptyp.Index) {
    				var par *syntax.Name
    				switch arg := arg.(type) {
    				case *syntax.Name:
    					par = arg
    				case *syntax.BadExpr:
    					// ignore - error already reported by parser
    				case nil:
    					check.error(ptyp, InvalidSyntaxTree, "parameterized receiver contains nil parameters")
    				default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. src/go/types/resolver.go

    		rtyp = ix.X
    		if unpackParams {
    			for _, arg := range ix.Indices {
    				var par *ast.Ident
    				switch arg := arg.(type) {
    				case *ast.Ident:
    					par = arg
    				case *ast.BadExpr:
    					// ignore - error already reported by parser
    				case nil:
    					check.error(ix.Orig, InvalidSyntaxTree, "parameterized receiver contains nil parameters")
    				default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  6. test/prove.go

    	i := 0
    	if len(b) > i {
    	top:
    		println(b[i]) // ERROR "Induction variable: limits \[0,\?\), increment 1$" "Proved IsInBounds$"
    		i++
    		if i < len(b) {
    			goto top
    		}
    	}
    }
    
    func atexit(foobar []func()) {
    	for i := len(foobar) - 1; i >= 0; i-- { // ERROR "Induction variable: limits \[0,\?\], increment 1"
    		f := foobar[i]
    		foobar = foobar[:i] // ERROR "IsSliceInBounds"
    		f()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/expr.go

    	old, found := check.untyped[x]
    	if !found {
    		return // nothing to do
    	}
    
    	// update operands of x if necessary
    	switch x := x.(type) {
    	case *syntax.BadExpr,
    		*syntax.FuncLit,
    		*syntax.CompositeLit,
    		*syntax.IndexExpr,
    		*syntax.SliceExpr,
    		*syntax.AssertExpr,
    		*syntax.ListExpr,
    		//*syntax.StarExpr,
    		*syntax.KeyValueExpr,
    		*syntax.ArrayType,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  8. src/go/printer/nodes.go

    	_, ok := expr.(*ast.BinaryExpr)
    	return ok
    }
    
    func (p *printer) expr1(expr ast.Expr, prec1, depth int) {
    	p.setPos(expr.Pos())
    
    	switch x := expr.(type) {
    	case *ast.BadExpr:
    		p.print("BadExpr")
    
    	case *ast.Ident:
    		p.print(x)
    
    	case *ast.BinaryExpr:
    		if depth < 1 {
    			p.internalError("depth < 1:", depth)
    			depth = 1
    		}
    		p.binaryExpr(x, prec1, cutoff(x, depth), depth)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/lib.go

    // passes over the host archives below.
    func loadWindowsHostArchives(ctxt *Link) {
    	any := true
    	for i := 0; any && i < 2; i++ {
    		// Link crt2.o (if present) to resolve "atexit" when
    		// using LLVM-based compilers.
    		isunresolved := symbolsAreUnresolved(ctxt, []string{"atexit"})
    		if isunresolved[0] {
    			if p := ctxt.findLibPath("crt2.o"); p != "none" {
    				hostObject(ctxt, "crt2", p)
    			}
    		}
    		if *flagRace {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  10. src/cmd/dist/test.go

    	if strings.HasPrefix(os.Getenv("GO_BUILDER_NAME"), "linux-") {
    		if os.Getuid() == 0 {
    			// Don't bother making GOROOT unwritable:
    			// we're running as root, so permissions would have no effect.
    		} else {
    			xatexit(t.makeGOROOTUnwritable())
    		}
    	}
    
    	if !t.json {
    		if err := t.maybeLogMetadata(); err != nil {
    			t.failed = true
    			if t.keepGoing {
    				log.Printf("Failed logging metadata: %v", err)
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
Back to top