Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 2,434 for 2014 (0.03 sec)

  1. src/cmd/cgo/internal/test/issue6997_linux.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 !android
    
    #include <pthread.h>
    #include <stdio.h>
    #include <unistd.h>
    
    static pthread_t thread;
    
    static void* threadfunc(void* dummy) {
    	while(1) {
    		sleep(1);
    	}
    }
    
    int StartThread() {
    	return pthread_create(&thread, NULL, &threadfunc, NULL);
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 536 bytes
    - Viewed (0)
  2. src/syscall/asm_aix_ppc64.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"
    
    //
    // System calls for aix/ppc64 are implemented in ../runtime/syscall_aix.go
    //
    
    TEXT ·syscall6(SB),NOSPLIT,$0
    	JMP	runtime·syscall_syscall6(SB)
    
    TEXT ·rawSyscall6(SB),NOSPLIT,$0
    	JMP	runtime·syscall_rawSyscall6(SB)
    
    TEXT ·RawSyscall(SB),NOSPLIT,$0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 14 09:10:02 UTC 2018
    - 540 bytes
    - Viewed (0)
  3. test/fixedbugs/issue8475.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.
    
    // Issue 8745: comma-ok assignments should produce untyped bool as 2nd result.
    
    package main
    
    type mybool bool
    
    func main() {
    	var ok mybool
    	_ = ok
    
    	var i interface{}
    	_, ok = i.(int)
    
    	var m map[int]int
    	_, ok = m[0]
    
    	var c chan int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 422 bytes
    - Viewed (0)
  4. test/fixedbugs/issue6703n.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 call of a value returned from a function call.
    
    package funcmethcall
    
    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)
  5. src/debug/plan9obj/plan9obj.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.
    
    /*
     * Plan 9 a.out constants and data structures
     */
    
    package plan9obj
    
    // Plan 9 Program header.
    type prog struct {
    	Magic uint32 /* magic number */
    	Text  uint32 /* size of text segment */
    	Data  uint32 /* size of initialized data */
    	Bss   uint32 /* size of uninitialized data */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 863 bytes
    - Viewed (0)
  6. test/fixedbugs/gcc61265.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.
    
    // PR61265: The gccgo middle-end failed to represent array composite literals
    // where the elements are zero-sized values.
    // This is a reduction of a program reported by GoSmith.
    
    package p
    
    var a = [1][0]int{B}[0]
    var B = [0]int{}
    var c = [1]struct{}{D}[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 450 bytes
    - Viewed (0)
  7. test/fixedbugs/issue6703r.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 call of an embedded struct returned
    // from a function call.
    
    package funcembedmethcall
    
    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)
  8. 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)
  9. test/gcstring.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.
    
    // Test that s[len(s):] - which can point past the end of the allocated block -
    // does not confuse the garbage collector.
    
    package main
    
    import (
    	"runtime"
    	"time"
    )
    
    type T struct {
    	ptr **int
    	pad [120]byte
    }
    
    var things []interface{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 872 bytes
    - Viewed (0)
  10. test/fixedbugs/issue9006.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
    
    type T1 struct {
    	X int
    }
    
    func NewT1(x int) T1 { return T1{x} }
    
    type T2 int
    
    func NewT2(x int) T2 { return T2(x) }
    
    func main() {
    	switch (T1{}) {
    	case NewT1(1):
    		panic("bad1")
    	case NewT1(0):
    		// ok
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 520 bytes
    - Viewed (0)
Back to top