Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for fixedbugs (0.15 sec)

  1. test/fixedbugs/issue10607.go

    	test("external") // The 'cgo' build constraint should imply that a linker is available.
    }
    
    func test(linkmode string) {
    	out, err := exec.Command("go", "run", "-ldflags", "-B=0x12345678 -linkmode="+linkmode, filepath.Join("fixedbugs", "issue10607a.go")).CombinedOutput()
    	if err != nil {
    		fmt.Printf("BUG: linkmode=%s %v\n%s\n", linkmode, err, out)
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 776 bytes
    - Viewed (0)
  2. test/fixedbugs/bug369.go

    package main
    
    import (
    	"fmt"
    	"io/ioutil"
    	"os"
    	"os/exec"
    	"path/filepath"
    )
    
    func main() {
    	err := os.Chdir(filepath.Join(".", "fixedbugs", "bug369.dir"))
    	check(err)
    
    	tmpDir, err := ioutil.TempDir("", "bug369")
    	check(err)
    	defer os.RemoveAll(tmpDir)
    
    	tmp := func(name string) string {
    		return filepath.Join(tmpDir, name)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue42018_windows.go

    import (
    	"testing"
    	"unsafe"
    )
    
    func test42018(t *testing.T) {
    	// Test that Windows handles are marked go:notinheap, by growing the
    	// stack and checking for pointer adjustments. Trick from
    	// test/fixedbugs/issue40954.go.
    	var i int
    	handle := C.HANDLE(unsafe.Pointer(uintptr(unsafe.Pointer(&i))))
    	recurseHANDLE(100, handle, uintptr(unsafe.Pointer(&i)))
    	hwnd := C.HWND(unsafe.Pointer(uintptr(unsafe.Pointer(&i))))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. test/typeparam/issue44688.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.
    
    // derived & expanded from cmd/compile/internal/types2/testdata/fixedbugs/issue44688.go2
    
    package main
    
    type A1[T any] struct {
    	val T
    }
    
    func (p *A1[T]) m1(val T) {
    	p.val = val
    }
    
    type A2[T any] interface {
    	m2(T)
    }
    
    type B1[T any] struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/testdata/loadstore_test.go

    		t.Errorf("testExtStore failed.  want = %d, got = %d", start, got)
    	}
    }
    
    var b int
    
    // testDeadStorePanic_ssa ensures that we don't optimize away stores
    // that could be read by after recover().  Modeled after fixedbugs/issue1304.
    //
    //go:noinline
    func testDeadStorePanic_ssa(a int) (r int) {
    	defer func() {
    		recover()
    		r = a
    	}()
    	a = 2      // store
    	b := a - a // optimized to zero
    	c := 4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/validtype.go

    		//
    		// // Exit early if we already know t is valid.
    		// // This is purely an optimization but it prevents excessive computation
    		// // times in pathological cases such as testdata/fixedbugs/issue6977.go.
    		// // (Note: The valids map could also be allocated locally, once for each
    		// // validType call.)
    		// if check.valids.lookup(t) != nil {
    		// 	break
    		// }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 13:22:37 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. src/go/types/validtype.go

    		//
    		// // Exit early if we already know t is valid.
    		// // This is purely an optimization but it prevents excessive computation
    		// // times in pathological cases such as testdata/fixedbugs/issue6977.go.
    		// // (Note: The valids map could also be allocated locally, once for each
    		// // validType call.)
    		// if check.valids.lookup(t) != nil {
    		// 	break
    		// }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/branches.go

    func (ls *labelScope) enclosingTarget(b *block, name string) *LabeledStmt {
    	if l := ls.labels[name]; l != nil {
    		l.used = true // even if it's not a valid target (see e.g., test/fixedbugs/bug136.go)
    		for ; b != nil; b = b.parent {
    			if l.lstmt == b.lstmt {
    				return l.lstmt
    			}
    		}
    		return invalid
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jun 26 00:21:29 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  9. test/reorder2.go

    // run
    
    // Copyright 2010 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 reorderings; derived from fixedbugs/bug294.go.
    
    package main
    
    var log string
    
    type TT int
    
    func (t TT) a(s string) TT {
    	log += "a(" + s + ")"
    	return t
    }
    
    func (TT) b(s string) string {
    	log += "b(" + s + ")"
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 7.2K bytes
    - Viewed (0)
  10. src/go/types/check_test.go

    func TestExamples(t *testing.T)  { testDirFiles(t, "../../internal/types/testdata/examples", false) }
    func TestFixedbugs(t *testing.T) { testDirFiles(t, "../../internal/types/testdata/fixedbugs", false) }
    func TestLocal(t *testing.T)     { testDirFiles(t, "testdata/local", false) }
    
    func testDirFiles(t *testing.T, dir string, manual bool) {
    	testenv.MustHaveGoBuild(t)
    	dir = filepath.FromSlash(dir)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top