- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,434 for 2014 (0.03 sec)
-
test/fixedbugs/issue6703a.go
// errorcheck // Copyright 2014 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. // Check for cycles in a function value. package funcvalue func fx() int { _ = x return 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 23 20:27:09 UTC 2022 - 335 bytes - Viewed (0) -
src/cmd/vet/testdata/shift/shift.go
// Copyright 2014 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. // This file contains tests for the suspicious shift checker. package shift func ShiftTest() { var i8 int8 _ = i8 << 7 _ = (i8 + 1) << 8 // ERROR ".i8 . 1. .8 bits. too small for shift of 8"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 358 bytes - Viewed (0) -
test/fixedbugs/gcc61273.go
// compile // Copyright 2014 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. // PR61273: gccgo failed to compile a SendStmt in the PostStmt of a ForClause // that involved predefined constants. package main func main() { c := make(chan bool, 1) for ; false; c <- false { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 375 bytes - Viewed (0) -
test/fixedbugs/issue1304.go
// run // Copyright 2014 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 var a = 1 func main() { defer func() { recover() if a != 2 { println("BUG a =", a) } }() a = 2 b := a - a c := 4 a = c / b a = 3
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 330 bytes - Viewed (0) -
test/fixedbugs/issue6703s.go
// errorcheck // Copyright 2014 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. // Check for cycles in a pointer method expression. package ptrmethexpr type T int func (*T) pm() int { _ = x return 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 23 20:27:09 UTC 2022 - 370 bytes - Viewed (0) -
test/fixedbugs/issue7742.go
// compile // Copyright 2014 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 7742: cannot use &autotmp_0001 (type *map[string]string) as type *string in function argument package main var ( m map[string]string v string ) func main() { m[v], _ = v, v
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 11 13:28:37 UTC 2014 - 362 bytes - Viewed (0) -
src/runtime/typekind.go
// Copyright 2014 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 runtime import "internal/abi" // isDirectIface reports whether t is stored directly in an interface value. func isDirectIface(t *_type) bool { return t.Kind_&abi.KindDirectIface != 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 356 bytes - Viewed (0) -
test/fixedbugs/issue8311.go
// errorcheck // Copyright 2014 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 8311. // error for x++ should say x++ not x += 1 package p func f() { var x []byte x++ // ERROR "invalid operation: x[+][+]|non-numeric type"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 15 02:35:59 UTC 2020 - 333 bytes - Viewed (0) -
test/fixedbugs/issue8501.go
// errorcheck // Copyright 2014 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 p type T struct { f float64 } var t T func F() { _ = complex(1.0) // ERROR "invalid operation|not enough arguments" _ = complex(t.f) // ERROR "invalid operation|not enough arguments"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 02 02:52:56 UTC 2015 - 374 bytes - Viewed (0) -
src/cmd/cgo/internal/testso/testdata/so/cgoso_unix.go
// Copyright 2014 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 aix || dragonfly || freebsd || linux || netbsd || solaris package cgosotest /* extern int __thread tlsvar; int *getTLS() { return &tlsvar; } */ import "C" func init() { if v := *C.getTLS(); v != 12345 { println("got", v) panic("BAD TLS value") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:41 UTC 2023 - 428 bytes - Viewed (0)