Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 2,434 for 2014 (0.03 sec)

  1. test/fixedbugs/issue7214.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 7214: No duplicate key error for maps with interface{} key type
    
    package p
    
    var _ = map[interface{}]int{2: 1, 2: 1} // ERROR "duplicate key"
    var _ = map[interface{}]int{int(2): 1, int16(2): 1}
    var _ = map[interface{}]int{int16(2): 1, int16(2): 1} // ERROR "duplicate key"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 04 14:46:23 UTC 2014
    - 817 bytes
    - Viewed (0)
  2. test/fixedbugs/issue8036.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.
    
    // Issue 8036. Stores necessary for stack scan being eliminated as redundant by optimizer.
    
    package main
    
    import "runtime"
    
    type T struct {
    	X *int
    	Y *int
    	Z *int
    }
    
    type TI [3]uintptr
    
    //go:noinline
    func G() (t TI) {
    	t[0] = 1
    	t[1] = 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 633 bytes
    - Viewed (0)
  3. test/fixedbugs/issue7675.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 7675: fewer errors for wrong argument count
    
    package p
    
    func f(string, int, float64, string)
    
    func g(string, int, float64, ...string)
    
    func main() {
    	f(1, 0.5, "hello") // ERROR "not enough arguments|incompatible type"
    	f("1", 2, 3.1, "4")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 785 bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_fatalf.c

    // 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 || (!android && linux) || dragonfly || freebsd || netbsd || openbsd || solaris
    
    #include <stdarg.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include "libcgo.h"
    
    void
    fatalf(const char* format, ...)
    {
    	va_list ap;
    
    	fprintf(stderr, "runtime/cgo: ");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 14:57:16 UTC 2023
    - 526 bytes
    - Viewed (0)
  5. src/runtime/rdebug.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 _ "unsafe" // for go:linkname
    
    //go:linkname setMaxStack runtime/debug.setMaxStack
    func setMaxStack(in int) (out int) {
    	out = int(maxstacksize)
    	maxstacksize = uintptr(in)
    	return out
    }
    
    //go:linkname setPanicOnFault runtime/debug.setPanicOnFault
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 02 18:52:03 UTC 2022
    - 550 bytes
    - Viewed (0)
  6. test/fixedbugs/issue6703q.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 an embedded struct returned
    // from a function call.
    
    package funcembedmethvalue
    
    type T int
    
    func (T) m() int {
    	_ = x
    	return 0
    }
    
    func g() E {
    	return E{0}
    }
    
    type E struct{ T }
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 477 bytes
    - Viewed (0)
  7. test/fixedbugs/issue8028.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 8028. Used to fail in -race mode with "non-orig name" error.
    
    package p
    
    var (
    	t2 = T{F, "s1"}
    	t1 = T{F, "s2"}
    
    	tt = [...]T{t1, t2}
    )
    
    type I interface{}
    
    type T struct {
    	F func() I
    	S string
    }
    
    type E struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 426 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue8517_windows.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 cgotest
    
    //void testHandleLeaks();
    import "C"
    
    import (
    	"syscall"
    	"testing"
    	"unsafe"
    )
    
    var issue8517counter int
    
    var (
    	kernel32              = syscall.MustLoadDLL("kernel32.dll")
    	getProcessHandleCount = kernel32.MustFindProc("GetProcessHandleCount")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 990 bytes
    - Viewed (0)
  9. test/fixedbugs/issue7997.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.
    
    // /tmp/x.go:3: internal error: f &p (type *int) recorded as live on entry
    
    package p
    
    func f(ch chan int) *int {
    	select {
    	case p1x := <-ch:
    		return &p1x
    	default:
    		// ok
    	}
    	select {
    	case p1 := <-ch:
    		return &p1
    	default:
    		// ok
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 732 bytes
    - Viewed (0)
  10. src/runtime/memclr_plan9_amd64.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.
    
    #include "textflag.h"
    
    // See memclrNoHeapPointers Go doc for important implementation constraints.
    
    // func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)
    TEXT runtime·memclrNoHeapPointers(SB),NOSPLIT,$0-16
    	MOVQ	ptr+0(FP), DI
    	MOVQ	n+8(FP), CX
    	MOVQ	CX, BX
    	ANDQ	$7, BX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 29 19:11:07 UTC 2021
    - 511 bytes
    - Viewed (0)
Back to top