Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 807 for file (0.04 sec)

  1. src/cmd/cgo/internal/testplugin/testdata/issue24351/plugin.go

    // Copyright 2018 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 "fmt"
    
    func B(c chan bool) {
    	go func() {
    		fmt.Println(1.5)
    		c <- true
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 261 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/seh_internal_windows_test.go

    // Copyright 2024 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 cgo && windows && internal
    
    package cgotest
    
    import (
    	"internal/testenv"
    	"testing"
    )
    
    func TestCallbackCallersSEH(t *testing.T) {
    	testenv.SkipFlaky(t, 65116)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 06:52:00 UTC 2024
    - 334 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue26743/a.go

    // Copyright 2018 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 issue26743
    
    // typedef unsigned int uint;
    // int C1(uint x) { return x; }
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 271 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcshared/cshared_test.go

    	cmd.Stderr = stderr
    
    	if GOOS != "windows" {
    		// TestUnexportedSymbols relies on file descriptor 30
    		// being closed when the program starts, so enforce
    		// that in all cases. (The first three descriptors are
    		// stdin/stdout/stderr, so we just need to make sure
    		// that cmd.ExtraFiles[27] exists and is nil.)
    		cmd.ExtraFiles = make([]*os.File, 28)
    	}
    
    	t.Logf("run: %v", args)
    	out, err := cmd.Output()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/flags_test.go

    // Copyright 2020 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 amd64 || arm64
    
    package ssa
    
    // This file tests the functions addFlags64 and subFlags64 by comparing their
    // results to what the chip calculates.
    
    import (
    	"runtime"
    	"testing"
    )
    
    func TestAddFlagsNative(t *testing.T) {
    	var numbers = []int64{
    		1, 0, -1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:36:17 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/fixedbugs_test.go

    // Copyright 2016 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 test
    
    import (
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"strings"
    	"testing"
    )
    
    type T struct {
    	x [2]int64 // field that will be clobbered. Also makes type not SSAable.
    	p *byte    // has a pointer
    }
    
    //go:noinline
    func makeT() T {
    	return T{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue52611b/b.go

    // Copyright 2022 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 issue52611b
    
    /*
    typedef struct Bar {
        int X;
    } Bar;
    */
    import "C"
    
    func GetX2(bar *C.struct_Bar) int32 {
    	return int32(bar.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 299 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testnocgo/nocgo_test.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 nocgo
    
    import "testing"
    
    func TestNop(t *testing.T) {
    	i := NoCgo()
    	if i != 42 {
    		t.Errorf("got %d, want %d", i, 42)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 292 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testplugin/testdata/iface_a/a.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 "testplugin/iface_i"
    
    //go:noinline
    func F() interface{} {
    	return (*iface_i.T)(nil)
    }
    
    //go:noinline
    func G() iface_i.I {
    	return (*iface_i.T)(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 332 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/testdata/issue46558.go

    // Copyright 2021 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
    
    func F(s string) {
    	switch s[0] {
    	case 'a':
    		case s[2] { // ERROR unexpected {
    		case 'b':
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 18:02:18 UTC 2022
    - 308 bytes
    - Viewed (0)
Back to top