Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,675 for mypanic (0.15 sec)

  1. test/fixedbugs/issue48898.go

    				defer func() {
    					recover()
    				}()
    				defer panic(3)
    				panic(2)
    			}()
    			defer func() {
    				recover()
    			}()
    			panic(1)
    		}()
    		defer func() {}()
    	}()
    
    	var x = 123
    	func() {
    		// in the original issue, this defer was not executed (which is incorrect)
    		defer print(x)
    		func() {
    			defer func() {}()
    			panic(4)
    		}()
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 29 23:15:00 UTC 2021
    - 666 bytes
    - Viewed (0)
  2. test/fixedbugs/issue9604.go

    	// This is a problem for arm where there is no 16-bit comparison op.
    	if ^x != 0 {
    		panic("^uint16(0xffff) != 0")
    	}
    	if ^y != 1 {
    		panic("^uint16(0xfffe) != 1")
    	}
    	if -x != 1 {
    		panic("-uint16(0xffff) != 1")
    	}
    	if a+b != 0 {
    		panic("0x7000+0x9000 != 0")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 15 23:50:01 UTC 2015
    - 631 bytes
    - Viewed (0)
  3. test/fixedbugs/issue29190.go

    }
    
    func shouldPanic(str string, f func()) {
    	defer func() {
    		err := recover()
    		if err == nil {
    			panic("did not panic")
    		}
    		s := err.(error).Error()
    		if !strings.Contains(s, str) {
    			panic("got panic " + s + ", want " + str)
    		}
    	}()
    
    	f()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 16:58:57 UTC 2022
    - 707 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/scope.go

    func (*lazyObject) Id() string                         { panic("unreachable") }
    func (*lazyObject) String() string                     { panic("unreachable") }
    func (*lazyObject) order() uint32                      { panic("unreachable") }
    func (*lazyObject) color() color                       { panic("unreachable") }
    func (*lazyObject) setType(Type)                       { panic("unreachable") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. src/go/types/scope.go

    func (*lazyObject) Id() string                         { panic("unreachable") }
    func (*lazyObject) String() string                     { panic("unreachable") }
    func (*lazyObject) order() uint32                      { panic("unreachable") }
    func (*lazyObject) color() color                       { panic("unreachable") }
    func (*lazyObject) setType(Type)                       { panic("unreachable") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. test/ddd2.dir/ddd3.go

    func main() {
    	if x := ddd.Sum(1, 2, 3); x != 6 {
    		println("ddd.Sum 6", x)
    		panic("fail")
    	}
    	if x := ddd.Sum(); x != 0 {
    		println("ddd.Sum 0", x)
    		panic("fail")
    	}
    	if x := ddd.Sum(10); x != 10 {
    		println("ddd.Sum 10", x)
    		panic("fail")
    	}
    	if x := ddd.Sum(1, 8); x != 9 {
    		println("ddd.Sum 9", x)
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 583 bytes
    - Viewed (0)
  7. src/net/cgo_stub.go

    func cgoLookupHost(ctx context.Context, name string) (addrs []string, err error) {
    	panic("cgo stub: cgo not available")
    }
    
    func cgoLookupPort(ctx context.Context, network, service string) (port int, err error) {
    	panic("cgo stub: cgo not available")
    }
    
    func cgoLookupIP(ctx context.Context, network, name string) (addrs []IPAddr, err error) {
    	panic("cgo stub: cgo not available")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. test/fixedbugs/issue5607.go

    		println(x)
    	}
    	innerTest()
    }
    
    var Test2 = func() {
    	// The following initializer should not be part of init()
    	// The compiler used to generate a call to Panic() in init().
    	var _, x = Panic()
    	_ = x
    }
    
    func Panic() (int, int) {
    	panic("omg")
    	return 1, 2
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jun 02 21:54:34 UTC 2013
    - 777 bytes
    - Viewed (0)
  9. test/fixedbugs/issue65417.go

    	const str = "a"
    	_ = str[unsafe.Sizeof(t)+0]
    }
    
    func shouldPanic(str string, f func()) {
    	defer func() {
    		err := recover()
    		if err == nil {
    			panic("did not panic")
    		}
    		s := err.(error).Error()
    		if !strings.Contains(s, str) {
    			panic("got panic " + s + ", want " + str)
    		}
    	}()
    
    	f()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 22:29:14 UTC 2024
    - 752 bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    		fn(ctx, r)
    	}
    	if ReallyCrash {
    		// Actually proceed to panic.
    		panic(r)
    	}
    }
    
    // logPanic logs the caller tree when a panic occurs (except in the special case of http.ErrAbortHandler).
    func logPanic(ctx context.Context, r interface{}) {
    	if r == http.ErrAbortHandler {
    		// honor the http.ErrAbortHandler sentinel panic value:
    		//   ErrAbortHandler is a sentinel panic value to abort a handler.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top