Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 567 for goio (0.04 sec)

  1. test/fixedbugs/bug076.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func f() {
    exit:
    	;
    	goto exit
    }
    
    
    func main() {
    exit:
    	; // this should be legal (labels not properly scoped?)
    	goto exit
    }
    
    /*
    uetli:~/Source/go/test/bugs gri$ 6g bug076.go 
    bug076.go:11: label redeclared: exit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 400 bytes
    - Viewed (0)
  2. test/fixedbugs/bug140.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	if true {
    	} else {
    	L1:
    		goto L1
    	}
    	if true {
    	} else {
    		goto L2
    	L2:
    		main()
    	}
    }
    
    /*
    These should be legal according to the spec.
    bug140.go:6: syntax error near L1
    bug140.go:7: syntax error near L2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 409 bytes
    - Viewed (0)
  3. src/math/big/arith_s390x.s

    	ADD   $128, R10           // i += 16
    	SUB   $16, R3             // n -= 16
    	BGE   UU1                 // if n >= 0 goto U1
    	VLGVG $1, V0, R4          // put cf into R4
    	NEG   R4, R4              // save cf
    
    A1:
    	ADD $12, R3 // n += 16
    
    	// s/JL/JMP/ below to disable the unrolled loop
    	BLT v1 // if n < 0 goto v1
    
    U1:  // n >= 0
    	// regular loop body unrolled 4x
    	MOVD 0(R8)(R10*1), R5
    	MOVD 8(R8)(R10*1), R6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/branchelim_test.go

    					Valu("const3", OpConst32, intType, 3, nil),
    					Goto("b5")),
    				Bloc("b2",
    					Valu("addr", OpAddr, boolType.PtrTo(), 0, nil, "sb"),
    					Valu("cond", OpLoad, boolType, 0, nil, "addr", "start"),
    					Valu("phi", OpPhi, intType, 0, nil, "const2", "const3"),
    					If("cond", "b3", "b4")),
    				Bloc("b3",
    					Goto("b2")),
    				Bloc("b4",
    					Goto("b2")),
    				Bloc("b5",
    					Exit("start")))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  5. test/fixedbugs/bug178.go

    func main() {
    L:
    	for i := 0; i < 1; i++ {
    	L1:
    		for {
    			break L
    		}
    		panic("BUG: not reached - break")
    		if false {
    			goto L1
    		}
    	}
    
    L2:
    	for i := 0; i < 1; i++ {
    	L3:
    		for {
    			continue L2
    		}
    		panic("BUG: not reached - continue")
    		if false {
    			goto L3
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 455 bytes
    - Viewed (0)
  6. src/cmd/trace/pprof.go

    // If the id string is empty, returns nil without an error.
    func pprofMatchingGoroutines(name string, t *parsedTrace) (map[trace.GoID][]interval, error) {
    	res := make(map[trace.GoID][]interval)
    	for _, g := range t.summary.Goroutines {
    		if name != "" && g.Name != name {
    			continue
    		}
    		endTime := g.EndTime
    		if g.EndTime == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. src/runtime/select.go

    			sg = c.sendq.dequeue()
    			if sg != nil {
    				goto recv
    			}
    			if c.qcount > 0 {
    				goto bufrecv
    			}
    			if c.closed != 0 {
    				goto rclose
    			}
    		} else {
    			if raceenabled {
    				racereadpc(c.raceaddr(), casePC(casi), chansendpc)
    			}
    			if c.closed != 0 {
    				goto sclose
    			}
    			sg = c.recvq.dequeue()
    			if sg != nil {
    				goto send
    			}
    			if c.qcount < c.dataqsiz {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. test/fixedbugs/issue10958.go

    		someglobal1++
    	}
    }
    
    func standinacorner2(i int) {
    	// contains an irreducible loop containing changes to memory
    	if i != 0 {
    		goto midloop
    	}
    
    loop:
    	if someglobal2&1 != 0 {
    		goto done
    	}
    	someglobal2++
    midloop:
    	someglobal2++
    	goto loop
    
    done:
    	return
    }
    
    func standinacorner3() {
    	for someglobal3&1 == 0 {
    		if someglobal3&2 != 0 {
    			for someglobal3&3 == 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top