Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for got3 (0.13 sec)

  1. src/cmd/cgo/internal/test/callback.go

    func testReturnAfterGrow(t *testing.T) {
    	// Use a new goroutine so that we get a small stack.
    	c := make(chan int)
    	go func() {
    		c <- int(C.returnAfterGrow())
    	}()
    	if got, want := <-c, 123456; got != want {
    		t.Errorf("got %d want %d", got, want)
    	}
    }
    
    // Test that we can return a value from Go->C->Go if the Go code
    // causes a stack copy.
    func testReturnAfterGrowFromGo(t *testing.T) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    		}
    	}
    </pre>
    
    <h3 id="Goto_statements">Goto statements</h3>
    
    <p>
    A "goto" statement transfers control to the statement with the corresponding label
    within the same function.
    </p>
    
    <pre class="ebnf">
    GotoStmt = "goto" Label .
    </pre>
    
    <pre>
    goto Error
    </pre>
    
    <p>
    Executing the "goto" statement must not cause any variables to come into
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
Back to top