Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 505 for goTo (0.05 sec)

  1. test/goto.go

    		goto L
    	}
    }
    
    // goto into inner block not okay
    func _() {
    	goto L // ERROR "goto L jumps into block starting at LINE+1|goto jumps into block"
    	{      // GCCGO_ERROR "block starts here"
    	L:
    	}
    }
    
    // goto backward into inner block still not okay
    func _() {
    	{ // GCCGO_ERROR "block starts here"
    	L:
    	}
    	goto L // ERROR "goto L jumps into block starting at LINE-3|goto jumps into block"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 02:27:58 UTC 2017
    - 8.4K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/gotos.go

    L:
    }
    
    // goto into outer block okay
    func _() {
    	{
    		goto L
    	}
    L:
    }
    
    func _() {
    	{
    		goto L
    		goto L1
    	}
    L: L1:
    }
    
    // goto backward into outer block okay
    func _() {
    L:
    	{
    		goto L
    	}
    }
    
    func _() {
    L: L1:
    	{
    		goto L
    		goto L1
    	}
    }
    
    // goto into inner block not okay
    func _() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  3. apache-maven/src/assembly/shared/init.cmd

    :stripPomDir
    if not "_%POM_DIR:~-1%"=="_\" goto pomDirStripped
    set "POM_DIR=%POM_DIR:~0,-1%"
    goto stripPomDir
    :pomDirStripped
    exit /b
    
    :findBaseDir
    cd /d "%WDIR%"
    set "WDIR=%CD%"
    :findBaseDirLoop
    if exist ".mvn" goto baseDirFound
    cd ..
    IF "%WDIR%"=="%CD%" goto baseDirNotFound
    set "WDIR=%CD%"
    goto findBaseDirLoop
    
    :baseDirFound
    set "MAVEN_PROJECTBASEDIR=%WDIR%"
    cd /d "%EXEC_DIR%"
    goto endDetectBaseDir
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Dec 16 21:35:28 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/dom_test.go

    			Goto("b28")),
    		Bloc("b29",
    			Goto("b31")),
    		Bloc("b31",
    			Goto("b28")),
    		Bloc("b28",
    			If("p", "b32", "b33")),
    		Bloc("b32",
    			Goto("b21")),
    		Bloc("b21",
    			Goto("b47")),
    		Bloc("b47",
    			If("p", "b45", "b46")),
    		Bloc("b45",
    			Goto("b48")),
    		Bloc("b48",
    			Goto("b49")),
    		Bloc("b49",
    			If("p", "b50", "b51")),
    		Bloc("b50",
    			Goto("b52")),
    		Bloc("b52",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. test/fixedbugs/issue8042.go

    // are accepted.
    
    package p
    
    func f1() {
    	goto L1
    	const x = 0
    L1:
    	goto L2
    	type T int
    L2:
    }
    
    func f2() {
    	{
    		goto L1
    	}
    	const x = 0
    L1:
    	{
    		goto L2
    	}
    	type T int
    L2:
    }
    
    func f3(d int) {
    	if d > 0 {
    		goto L1
    	} else {
    		goto L2
    	}
    	const x = 0
    L1:
    	switch d {
    	case 1:
    		goto L3
    	case 2:
    	default:
    		goto L4
    	}
    	type T1 int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:41:07 UTC 2021
    - 691 bytes
    - Viewed (0)
  6. test/ken/label.go

    // license that can be found in the LICENSE file.
    
    // Test goto and labels.
    
    package main
    
    func main() {
    	i := 0
    	if false {
    		goto gogoloop
    	}
    	if false {
    		goto gogoloop
    	}
    	if false {
    		goto gogoloop
    	}
    	goto gogoloop
    
    	// backward declared
    loop:
    	i = i + 1
    	if i < 100 {
    		goto loop
    	}
    	return
    
    gogoloop:
    	goto loop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 439 bytes
    - Viewed (0)
  7. src/main/assemblies/files/service.bat

    set conv=%value:~0,-1%
    
    if "%unit%" == "k" goto kilo
    if "%unit%" == "K" goto kilo
    if "%unit%" == "m" goto mega
    if "%unit%" == "M" goto mega
    if "%unit%" == "g" goto giga
    if "%unit%" == "G" goto giga
    
    rem no unit found, must be bytes; consider the whole value
    set conv=%value%
    rem convert to KB
    set /a conv=%conv% / 1024
    :kilo
    rem convert to MB
    set /a conv=%conv% / 1024
    goto mega
    :giga
    rem convert to MB
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. test/fixedbugs/issue64606.go

    package main
    
    func main() {
    	var o any = uint64(5)
    	switch o.(type) {
    	case int:
    		goto ret
    	case int8:
    		goto ret
    	case int16:
    		goto ret
    	case int32:
    		goto ret
    	case int64:
    		goto ret
    	case float32:
    		goto ret
    	case float64:
    		goto ret
    	default:
    		goto ret
    	}
    ret:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 463 bytes
    - Viewed (0)
  9. src/run.bat

    dist env > env.bat
    L23:if errorlevel 1 goto fail
    L24:call .\env.bat
    L25:del env.bat
    L26:
    L27:set GOPATH=c:\nonexist-gopath
    L28:
    L29:if x%1==x--no-rebuild goto norebuild
    L30:..\bin\go tool dist test --rebuild
    L31:if errorlevel 1 goto fail
    L32:goto end
    L33:
    L34::norebuild
    L35:..\bin\go tool dist test
    L36:if errorlevel 1 goto fail
    L37:goto end
    L38:
    L39::fail
    L40:set GOBUILDFAIL=1
    L41:
    L42::end
    ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 17 20:19:28 UTC 2022
    - 859 bytes
    - Viewed (0)
  10. src/make.bat

    script
    L38::: unless invoked with --no-local.
    L39:if x%1==x-no-local goto nolocal
    L40:if x%2==x-no-local goto nolocal
    L41:if x%3==x-no-local goto nolocal
    L42:if x%4==x-no-local goto nolocal
    L43:if x%1==x--no-local goto nolocal
    L44:if x%2==x--no-local goto nolocal
    L45:if x%3==x--no-local goto nolocal
    L46:if x%4==x--no-local goto nolocal
    L47:setlocal
    L48::nolocal
    L49:
    L50:set GOBUILDFAIL=0
    L51:
    L52:if exist make.bat goto ok
    L53:echo Must run make.bat from Go src directory.
    L54:goto fail
    ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top