Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 505 for goTo (0.04 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. src/internal/types/testdata/check/stmt0.go

    		}
    	}
    
    	switch x {
    	case 0:
    		goto L1
    		L1: fallthrough; ;
    	case 1:
    		goto L2
    		goto L3
    		goto L4
    		L2: L3: L4: fallthrough
    	default:
    	}
    
    	switch x {
    	case 0:
    		goto L5
    		L5: fallthrough
    	default:
    		goto L6
    		goto L7
    		goto L8
    		L6: L7: L8: fallthrough /* ERROR "cannot fallthrough final case in switch" */
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/func_test.go

    func Valu(name string, op Op, t *types.Type, auxint int64, aux Aux, args ...string) valu {
    	return valu{name, op, t, auxint, aux, args}
    }
    
    // Goto specifies that this is a BlockPlain and names the single successor.
    // TODO(matloob): choose a better name.
    func Goto(succ string) ctrl {
    	return ctrl{BlockPlain, "", []string{succ}}
    }
    
    // If specifies a BlockIf.
    func If(cond, sub, alt string) ctrl {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:01:04 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  7. src/regexp/exec.go

    				m.matchcap[0] = 0
    				m.matchcap[1] = pos
    			}
    			goto Return
    		case syntax.InstRune:
    			if !inst.MatchRune(r) {
    				goto Return
    			}
    		case syntax.InstRune1:
    			if r != inst.Rune[0] {
    				goto Return
    			}
    		case syntax.InstRuneAny:
    			// Nothing
    		case syntax.InstRuneAnyNotNL:
    			if r == '\n' {
    				goto Return
    			}
    		// peek at the input rune to see which branch of the Alt to take
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 04 20:10:54 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/compile/internal/syntax/branches.go

    							ls.err(
    								fwd.Label.Pos(),
    								"goto %s jumps over declaration of %s at %s",
    								name, String(varName), varPos,
    							)
    						}
    					} else {
    						// no match - keep forward goto
    						fwdGotos[i] = fwd
    						i++
    					}
    				}
    				fwdGotos = fwdGotos[:i]
    				lstmt = s
    			}
    			// process labeled statement
    			stmt = s.Stmt
    			goto L
    
    		case *BranchStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jun 26 00:21:29 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  10. 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)
Back to top