- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 2,478 for 2047 (0.04 sec)
-
src/cmd/cgo/internal/testplugin/testdata/issue18584/plugin.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "reflect" type C struct { } func F(c *C) *C { return nil } func G() bool { var c *C return reflect.TypeOf(F).Out(0) == reflect.TypeOf(c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 326 bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/iface/main.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "testshared/iface_a" import "testshared/iface_b" func main() { if iface_a.F() != iface_b.F() { panic("empty interfaces not equal") } if iface_a.G() != iface_b.G() { panic("non-empty interfaces not equal") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 399 bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/iface_i/i.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package iface_i type I interface { M() } type T struct { } func (t *T) M() { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 263 bytes - Viewed (0) -
test/fixedbugs/issue18915.go
// errorcheck // Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Make sure error message for invalid conditions // or tags are consistent with earlier Go versions. package p func _() { if a := 10 { // ERROR "cannot use a := 10 as value|expected .*;|declared and not used" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:10:19 UTC 2022 - 581 bytes - Viewed (0) -
test/fixedbugs/issue22794.go
// errorcheck // Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main type it struct { Floats bool inner string } func main() { i1 := it{Floats: true} if i1.floats { // ERROR "(type it .* field or method floats, but does have field Floats)|undefined field or method" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 16:41:56 UTC 2024 - 615 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue22175/plugin1.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "plugin" func F() int { p2, err := plugin.Open("issue22175_plugin2.so") if err != nil { panic(err) } g, err := p2.Lookup("G") if err != nil { panic(err) } return g.(func() int)() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 390 bytes - Viewed (0) -
test/fixedbugs/issue7525d.go
// errorcheck // Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 7525: self-referential array types. package main import "unsafe" var x struct { // GC_ERROR "initialization cycle: x refers to itself" b [unsafe.Offsetof(x.b)]int // GCCGO_ERROR "array bound|typechecking loop|invalid array"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 14:21:33 UTC 2022 - 414 bytes - Viewed (0) -
test/fixedbugs/issue7525e.go
// errorcheck // Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 7525: self-referential array types. package main import "unsafe" var x struct { // GC_ERROR "initialization cycle: x refers to itself" c [unsafe.Alignof(x.c)]int // GCCGO_ERROR "array bound|typechecking loop|invalid array"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 14:21:33 UTC 2022 - 413 bytes - Viewed (0) -
test/fixedbugs/issue20185.go
// errorcheck // Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 20185: type switching on untyped values (e.g. nil or consts) // caused an internal compiler error. package p func F() { switch t := nil.(type) { // ERROR "cannot type switch on non-interface value|not an interface" default: _ = t } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:10:19 UTC 2022 - 581 bytes - Viewed (0) -
src/crypto/sha256/sha256block_amd64.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !purego package sha256 import "internal/cpu" var useAVX2 = cpu.X86.HasAVX2 && cpu.X86.HasBMI2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 307 bytes - Viewed (0)