Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,434 for 2014 (0.03 sec)

  1. test/fixedbugs/issue6703o.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 an embedded struct's method value.
    
    package embedmethvalue
    
    type T int
    
    func (T) m() int {
    	_ = x
    	return 0
    }
    
    type E struct{ T }
    
    var (
    	e E
    	x = e.m // ERROR "initialization cycle|depends upon itself" 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 404 bytes
    - Viewed (0)
  2. test/fixedbugs/issue7550.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
    
    func shouldPanic(f func()) {
            defer func() {
                    if recover() == nil {
                            panic("not panicking")
                    }
            }()
            f()
    }
    
    func f() {
            length := int(^uint(0) >> 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 03 02:44:44 UTC 2014
    - 551 bytes
    - Viewed (0)
  3. src/runtime/atomic_ppc64x.s

    // 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 ppc64 || ppc64le
    
    #include "textflag.h"
    
    TEXT ·publicationBarrier(SB),NOSPLIT|NOFRAME,$0-0
    	// LWSYNC is the "export" barrier recommended by Power ISA
    	// v2.07 book II, appendix B.2.2.2.
    	// LWSYNC is a load/load, load/store, and store/store barrier.
    	LWSYNC
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 437 bytes
    - Viewed (0)
  4. test/nilptr4.go

    // build
    
    // 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.
    
    // Test that the compiler does not crash during compilation.
    
    package main
    
    import "unsafe"
    
    // Issue 7413
    func f1() {
    	type t struct {
    		i int
    	}
    
    	var v *t
    	_ = int(uintptr(unsafe.Pointer(&v.i)))
    	_ = int32(uintptr(unsafe.Pointer(&v.i)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 428 bytes
    - Viewed (0)
  5. test/fixedbugs/issue6403.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 6403: fix spurious 'const initializer is not a constant' error
    
    package p
    
    import "syscall"
    
    const A int = syscall.X // ERROR "undefined: syscall.X|undefined identifier .*syscall.X"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 445 bytes
    - Viewed (0)
  6. test/fixedbugs/issue7153.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 7153: array invalid index error duplicated on successive bad values
    
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 434 bytes
    - Viewed (0)
  7. test/fixedbugs/issue8347.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
    
    func main() {
    	c := make(chan bool, 1)
    	ok := true
    	for i := 0; i < 12; i++ {
    		select {
    		case _, ok = <-c:
    			if i < 10 && !ok {
    				panic("BUG")
    			}
    		default:
    		}
    		if i < 10 && !ok {
    			panic("BUG")
    		}
    		if i >= 10 && ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 433 bytes
    - Viewed (0)
  8. test/fixedbugs/gcc61244.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.
    
    // PR61244: Type descriptors expressions were not traversed, causing an ICE
    // in gccgo when producing the backend representation.
    // This is a reduction of a program reported by GoSmith.
    
    package main
    
    const a = 0
    
    func main() {
    	switch i := (interface{})(a); i.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 466 bytes
    - Viewed (0)
  9. test/fixedbugs/issue6572.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 main
    
    func foo() (T, T) { // ERROR "undefined"
    	return 0, 0
    }
    
    func bar() (T, string, T) { // ERROR "undefined"
    	return 0, "", 0
    }
    
    func main() {
    	var x, y, z int
    	x, y = foo()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 12 23:07:01 UTC 2021
    - 452 bytes
    - Viewed (0)
  10. test/fixedbugs/issue6703m.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 the method value of a value returned from a function call.
    
    package funcmethvalue
    
    type T int
    
    func (T) m() int {
    	_ = x
    	return 0
    }
    
    func f() T {
    	return T(0)
    }
    
    var (
    	t T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 437 bytes
    - Viewed (0)
Back to top