- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 1,675 for mypanic (0.11 sec)
-
test/fixedbugs/bug114.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 21 23:19:59 UTC 2012 - 556 bytes - Viewed (0) -
test/fixedbugs/issue29612.dir/main.go
// Do not panic on conversion to anonymous interface, which // is similar-looking interface types in different packages. package main import ( "fmt" ssa1 "issue29612.dir/p1/ssa" ssa2 "issue29612.dir/p2/ssa" ) func main() { v1 := &ssa1.T{} _ = v1 v2 := &ssa2.T{} ssa2.Works(v2) ssa2.Panics(v2) // This call must not panic swt(v1, 1) swt(v2, 2) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 25 14:19:25 UTC 2020 - 845 bytes - Viewed (0) -
test/fixedbugs/issue4066.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 04 16:07:21 UTC 2013 - 543 bytes - Viewed (0) -
src/cmd/internal/obj/x86/obj6.go
if autoffset != 0 { p.Pos = p.Pos.WithXlogue(src.PosPrologueEnd) } if cursym.Func().Text.From.Sym.Wrapper() { // if g._panic != nil && g._panic.argp == FP { // g._panic.argp = bottom-of-frame // } // // MOVQ g_panic(g), regEntryTmp0 // TESTQ regEntryTmp0, regEntryTmp0 // JNE checkargp // end: // NOP // ... rest of function ... // checkargp:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:36:45 UTC 2023 - 40.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue62430/main.go
import ( "fmt" "plugin" "unicode" ) func main() { p, err := plugin.Open("issue62430.so") if err != nil { panic(err) } s, err := p.Lookup("F") if err != nil { panic(err) } f := s.(func(string) *unicode.RangeTable) if f("C") == nil { panic("unicode.Categories not properly initialized") } else { fmt.Println("unicode.Categories properly initialized") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 13:18:51 UTC 2023 - 804 bytes - Viewed (0) -
test/fixedbugs/issue22083.go
// The compiler was panicking on the wrong line number, where // the panic was occurring in an inlined call. package main import ( "runtime/debug" "strings" ) type Wrapper struct { a []int } func (w Wrapper) Get(i int) int { return w.a[i] } func main() { defer func() { e := recover() if e == nil { panic("bounds check didn't fail") } stk := string(debug.Stack())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 03 09:27:37 UTC 2017 - 791 bytes - Viewed (0) -
test/typeparam/factimp.dir/main.go
import ( "./a" "fmt" ) func main() { const want = 120 if got := a.Fact(5); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got := a.Fact[int64](5); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got := a.Fact(5.0); got != want { panic(fmt.Sprintf("got %f, want %f", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 516 bytes - Viewed (0) -
internal/event/targetlist_test.go
panic(err) } targetListCase3 := NewTargetList(context.Background()) if err := targetListCase3.Add(&ExampleTarget{TargetID{"3", "testcase"}, false, false}); err != nil { panic(err) } if err := targetListCase3.Add(&ExampleTarget{TargetID{"1", "webhook"}, false, false}); err != nil { panic(err) } testCases := []struct {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Dec 05 10:16:33 UTC 2023 - 6.1K bytes - Viewed (0) -
src/log/log.go
os.Exit(1) } // Panic is equivalent to l.Print() followed by a call to panic(). func (l *Logger) Panic(v ...any) { s := fmt.Sprint(v...) l.Output(2, s) panic(s) } // Panicf is equivalent to l.Printf() followed by a call to panic(). func (l *Logger) Panicf(format string, v ...any) { s := fmt.Sprintf(format, v...) l.Output(2, s) panic(s) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 23 22:56:07 UTC 2023 - 12.9K bytes - Viewed (0) -
test/typeparam/struct.go
func main() { s1 := S1{Eint{2}, "foo"} if got, want := s1.E.v, 2; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } s2 := S2{Eint{3}, Ebool{true}, "foo"} if got, want := s2.Eint.v, 3; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } var s3 S3 s3.E = &Eint{4} if got, want := s3.E.v, 4; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 16:29:58 UTC 2024 - 801 bytes - Viewed (0)