Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 288 for GOTO (0.03 sec)

  1. src/go/printer/testdata/statements.golden

    AnOverlongLabel:
    	_ = 0
    
    	if true {
    		_ = 0
    	}
    	_ = 0
    
    L:
    	_ = 0
    }
    
    func _() {
    	for {
    		goto L
    	}
    L:
    
    	MoreCode()
    }
    
    func _() {
    	for {
    		goto L
    	}
    L:	// A comment on the same line as the label, followed by a single empty line.
    	// Known bug: There may be more than one empty line before MoreCode()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 12 18:18:12 UTC 2014
    - 8K bytes
    - Viewed (0)
  2. test/fixedbugs/issue4748.go

    // license that can be found in the LICENSE file.
    
    // Issue 4748.
    // This program used to complain because inlining created two exit labels.
    
    package main
    
    func jump() {
            goto exit
    exit:
            return
    }
    func main() {
            jump()
            jump()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 374 bytes
    - Viewed (0)
  3. src/cmd/cover/testdata/test.go

    	}
    	check(LINE, 1)
    	{
    		check(LINE, 1)
    	}
    	{
    		check(LINE, 1)
    	}
    	check(LINE, 1)
    }
    
    func testSwitch() {
    	for i := 0; i < 5; func() { i++; check(LINE, 5) }() {
    		goto label2
    	label1:
    		goto label1
    	label2:
    		switch i {
    		case 0:
    			check(LINE, 1)
    		case 1:
    			check(LINE, 1)
    		case 2:
    			check(LINE, 1)
    		default:
    			check(LINE, 2)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modindex/build_read.go

    					}
    					continue
    				}
    				if c == '"' {
    					c = r.readByteNoBuf()
    					goto Reswitch
    				}
    			}
    			goto Reswitch
    
    		case '`':
    			startLine = false
    			for r.err == nil {
    				if r.eof {
    					r.syntaxError()
    				}
    				c = r.readByteNoBuf()
    				if c == '`' {
    					c = r.readByteNoBuf()
    					goto Reswitch
    				}
    			}
    
    		case '\'':
    			startLine = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. test/fixedbugs/bug495.go

    // license that can be found in the LICENSE file.
    
    // Gccgo used to give an incorrect error
    // bug495.go:16:2: error: missing statement after label
    
    package p
    
    func F(i int) {
    	switch i {
    	case 0:
    		goto lab
    	lab:
    		fallthrough
    	case 1:
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 13 22:05:23 UTC 2015
    - 363 bytes
    - Viewed (0)
  6. src/cmd/compile/internal/noder/stmt.go

    // TODO(mdempsky): Investigate replacing with switch statements or dense arrays.
    
    var branchOps = [...]ir.Op{
    	syntax.Break:       ir.OBREAK,
    	syntax.Continue:    ir.OCONTINUE,
    	syntax.Fallthrough: ir.OFALL,
    	syntax.Goto:        ir.OGOTO,
    }
    
    var callOps = [...]ir.Op{
    	syntax.Defer: ir.ODEFER,
    	syntax.Go:    ir.OGO,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:39:32 UTC 2023
    - 564 bytes
    - Viewed (0)
  7. src/go/token/token.go

    	CONTINUE: "continue",
    
    	DEFAULT:     "default",
    	DEFER:       "defer",
    	ELSE:        "else",
    	FALLTHROUGH: "fallthrough",
    	FOR:         "for",
    
    	FUNC:   "func",
    	GO:     "go",
    	GOTO:   "goto",
    	IF:     "if",
    	IMPORT: "import",
    
    	INTERFACE: "interface",
    	MAP:       "map",
    	PACKAGE:   "package",
    	RANGE:     "range",
    	RETURN:    "return",
    
    	SELECT: "select",
    	STRUCT: "struct",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/loopreschedchecks.go

    		// bb.Succs[p.i] == Edge{h, i}
    		// h.Preds[i] == p == Edge{bb,p.i}
    		//
    		// new block(s):
    		// test:
    		//    if sp < g.limit { goto sched }
    		//    goto join
    		// sched:
    		//    mem1 := call resched (mem0)
    		//    goto join
    		// join:
    		//    mem2 := phi(mem0, mem1)
    		//    goto h
    		//
    		// and correct arg i of headerMemPhi and headerCtrPhi
    		//
    		// EXCEPT: join block containing only phi functions is bad
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:10 UTC 2023
    - 16K bytes
    - Viewed (0)
  9. scripts/playwright/separate_openapi_schemas/image05.py

    
    def run(playwright: Playwright) -> None:
        browser = playwright.chromium.launch(headless=False)
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
        page.goto("http://localhost:8000/docs")
        page.get_by_role("button", name="Item", exact=True).click()
        page.set_viewport_size({"width": 960, "height": 700})
        page.screenshot(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 829 bytes
    - Viewed (0)
  10. test/fixedbugs/issue40367.go

    			panic("")
    		}
    		j--
    		sink[j] = j
    	}
    }
    
    func case2() {
    	i := 0
    	var sink [3]int
    	j := len(sink)
    top:
    	j--
    	sink[j] = j
    	if i < 2 {
    		i++
    		if i < 1 {
    			return
    		}
    		goto top
    	}
    }
    
    func main() {
    	case1()
    	case2()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 17:23:11 UTC 2020
    - 526 bytes
    - Viewed (0)
Back to top