Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for issue7035 (0.18 sec)

  1. src/internal/types/testdata/check/issues0.go

    // license that can be found in the LICENSE file.
    
    package p // don't permit non-interface elements in interfaces
    
    import (
    	"fmt"
    	syn "regexp/syntax"
    	t1 "text/template"
    	t2 "html/template"
    )
    
    func issue7035() {
    	type T struct{ X int }
    	_ = func() {
    		fmt.Println() // must refer to imported fmt rather than the fmt below
    	}
    	fmt := new(T)
    	_ = fmt.X
    }
    
    func issue8066() {
    	const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/testx.go

    func test31891(t *testing.T) {
    	C.callIssue31891()
    }
    
    // issue 37033, check if cgo.Handle works properly
    
    var issue37033 = 42
    
    //export GoFunc37033
    func GoFunc37033(handle C.uintptr_t) {
    	h := cgo.Handle(handle)
    	ch := h.Value().(chan int)
    	ch <- issue37033
    }
    
    // issue 38408
    // A typedef pointer can be used as the element type.
    // No runtime test; just make sure it compiles.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/gcimporter_test.go

    	// This package only handles gc export data.
    	if runtime.Compiler != "gc" {
    		t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
    	}
    
    	compileAndImportPkg(t, "issue57015")
    }
    
    func importPkg(t *testing.T, path, srcDir string) *types.Package {
    	fset := token.NewFileSet()
    	pkg, err := Import(fset, make(map[string]*types.Package), path, srcDir, nil)
    	if err != nil {
    		t.Helper()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. src/syscall/syscall_linux_test.go

    // that mirror to the 9 glibc syscalls with POSIX semantics. The test
    // here is considered authoritative and should compile and run
    // CGO_ENABLED=0 or 1. Note, there is an extended copy of this same
    // test in ../../misc/cgo/test/issue1435.go which requires
    // CGO_ENABLED=1 and launches pthreads from C that run concurrently
    // with the Go code of the test - and the test validates that these
    // pthreads are also kept in sync with the security state changed with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/test.go

    	ch := make(chan int)
    
    	for i := 0; i < 42; i++ {
    		h := cgo.NewHandle(ch)
    		go func() {
    			C.cFunc37033(C.uintptr_t(h))
    		}()
    		if v := <-ch; issue37033 != v {
    			t.Fatalf("unexpected receiving value: got %d, want %d", v, issue37033)
    		}
    		h.Delete()
    	}
    }
    
    // issue 38649
    
    var issue38649 C.netbsd_gid = 42
    
    // issue 39877
    
    var issue39877 *C.void = nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  6. test/escape2.go

    	return m["foo"] // ERROR ".foo. does not escape$"
    }
    
    func nonescapingIface(m map[M]bool) bool { // ERROR "m does not escape$"
    	return m[MV(0)] // ERROR "MV\(0\) does not escape$"
    }
    
    func issue10353() {
    	x := new(int) // ERROR "new\(int\) escapes to heap$"
    	issue10353a(x)()
    }
    
    func issue10353a(x *int) func() { // ERROR "leaking param: x$"
    	return func() { // ERROR "func literal escapes to heap$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  7. test/escape2n.go

    	return m["foo"] // ERROR ".foo. does not escape$"
    }
    
    func nonescapingIface(m map[M]bool) bool { // ERROR "m does not escape$"
    	return m[MV(0)] // ERROR "MV\(0\) does not escape$"
    }
    
    func issue10353() {
    	x := new(int) // ERROR "new\(int\) escapes to heap$"
    	issue10353a(x)()
    }
    
    func issue10353a(x *int) func() { // ERROR "leaking param: x$"
    	return func() { // ERROR "func literal escapes to heap$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
Back to top