Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 199 for goTo (0.43 sec)

  1. test/fixedbugs/issue15838.dir/a.go

    // license that can be found in the LICENSE file.
    
    package a
    
    func F1() {
    L:
    	goto L
    }
    
    func F2() {
    L:
    	for {
    		break L
    	}
    }
    
    func F3() {
    L:
    	for {
    		continue L
    	}
    }
    
    func F4() {
    	switch {
    	case true:
    		fallthrough
    	default:
    	}
    }
    
    type T struct{}
    
    func (T) M1() {
    L:
    	goto L
    }
    
    func (T) M2() {
    L:
    	for {
    		break L
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 26 00:32:03 UTC 2016
    - 541 bytes
    - Viewed (0)
  2. test/rangegen.go

    		p(b, "	l%sa := 0\n", s)
    		p(b, "goto L%sa; L%sa:	o.log(`L%sa`)\n", s, s, s)
    		p(b, "	if l%sa++; l%sa >= 2 { o.log(`loop L%sa`); return -1 }\n", s, s, s)
    		p(b, "	l%sfor := 0\n", s)
    		p(b, "goto L%sfor; L%sfor: for f := 0; f < 1; f++ { o.log(`L%sfor`)\n", s, s, s)
    		p(b, "	if l%sfor++; l%sfor >= 2 { o.log(`loop L%sfor`); return -1 }\n", s, s, s)
    		p(b, "	l%ssw := 0\n", s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 23:35:19 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/writebarrier_test.go

    			Valu("sp", OpSP, c.config.Types.Uintptr, 0, nil),
    			Goto("loop")),
    		Bloc("loop",
    			Valu("phi", OpPhi, types.TypeMem, 0, nil, "start", "wb"),
    			Valu("v", OpConstNil, ptrType, 0, nil),
    			Valu("addr", OpAddr, ptrType, 0, nil, "sb"),
    			Valu("wb", OpStore, types.TypeMem, 0, ptrType, "addr", "v", "phi"), // has write barrier
    			Goto("loop")))
    
    	CheckFunc(fun.f)
    	writebarrier(fun.f)
    	CheckFunc(fun.f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/inline/inlheur/testdata/props/funcflags.go

    // <endcallsites>
    // <endfuncpreamble>
    func T_hasgotos(x int, y int) {
    	{
    		xx := x
    		panic("bad")
    	lab1:
    		goto lab2
    	lab2:
    		if false {
    			goto lab1
    		} else {
    			goto lab4
    		}
    	lab4:
    		if xx < y {
    		lab3:
    			if false {
    				goto lab3
    			}
    		}
    		println(9)
    	}
    }
    
    // funcflags.go T_break_with_label 246 0 1
    // ParamFlags
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:01 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. test-site/activator.bat

          )
        ) else (
          set JPDA_PORT=9999
        )
        shift
    
        set DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=!JPDA_PORT!
        goto argsloop
      )
      rem else
      set "args=%args% "%~1""
      shift
      goto argsloop
    )
    
    :run
    
    if "!args!"=="" (
      if defined DOUBLECLICKED (
        set CMDS="ui"
      ) else set CMDS=!args!
    ) else set CMDS=!args!
    
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 7.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go

    // statement following stmt is reachable.
    func (d *deadState) findDead(stmt ast.Stmt) {
    	// Is this a labeled goto target?
    	// If so, assume it is reachable due to the goto.
    	// This is slightly conservative, in that we don't
    	// check that the goto is reachable, so
    	//	L: goto L
    	// will not provoke a warning.
    	// But it's good enough.
    	if x, isLabel := stmt.(*ast.LabeledStmt); isLabel && d.hasGoto[x.Label.Name] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  7. src/runtime/os3_plan9.go

    		print("sighandler: ureg ", _ureg, " note ", note, "\n")
    		goto Throw
    	}
    	// Check that the note is no more than ERRMAX bytes (including
    	// the trailing NUL). We should never receive a longer note.
    	if len(notestr) > _ERRMAX-1 {
    		print("sighandler: note is longer than ERRMAX\n")
    		goto Throw
    	}
    	if isAbortPC(c.pc()) {
    		// Never turn abort into a panic.
    		goto Throw
    	}
    	// See if the note matches one of the patterns in sigtab.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/deadstore_test.go

    			Valu("store3", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr1", "v", "store2"),
    			Valu("store4", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr3", "v", "store3"),
    			Goto("exit")),
    		Bloc("exit",
    			Exit("store3")))
    
    	CheckFunc(fun.f)
    	dse(fun.f)
    	CheckFunc(fun.f)
    
    	v1 := fun.values["store1"]
    	if v1.Op != OpCopy {
    		t.Errorf("dead store not removed")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/passbm_test.go

    				valn("v", i, 0), valn("store", i, 2)),
    			Valu(valn("store", i, 4), OpStore, types.TypeMem, 0, elemType, valn("addr", i, 3),
    				valn("v", i, 0), valn("store", i, 3)),
    			Goto(blockn(i+1))))
    	}
    
    	blocs = append(blocs,
    		Bloc(blockn(size+1), Goto("exit")),
    		Bloc("exit", Exit("store0-4")),
    	)
    
    	return blocs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/sccp_test.go

    			Valu("cmp", OpLess64, c.config.Types.Bool, 0, nil, "v1", "v2"),
    			If("cmp", "b2", "b3")),
    		Bloc("b2",
    			Valu("v3", OpConst64, c.config.Types.Int64, 3, nil),
    			Goto("b4")),
    		Bloc("b3",
    			Valu("v4", OpConst64, c.config.Types.Int64, 4, nil),
    			Goto("b4")),
    		Bloc("b4",
    			Valu("merge", OpPhi, c.config.Types.Int64, 0, nil, "v3", "v4"),
    			Exit("mem")))
    	sccp(fun.f)
    	CheckFunc(fun.f)
    	for _, b := range fun.blocks {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 21:01:50 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top