Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 143 for GCCGO (0.06 sec)

  1. src/cmd/go/testdata/script/cover_cgo_xtest.txt

    [short] skip
    [!cgo] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test cgo coverage with an external test.
    
    go test -short -cover cgocover2
    stdout  'coverage:.*[1-9][0-9.]+%'
    ! stderr '[^0-9]0\.0%'
    
    -- go.mod --
    module cgocover2
    
    go 1.16
    -- p.go --
    package p
    
    /*
    void
    f(void)
    {
    }
    */
    import "C"
    
    var b bool
    
    func F() {
    	if b {
    		for {
    		}
    	}
    	C.f()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 464 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_gcflags.txt

    env GO111MODULE=off
    
    # Test that the user can override default code generation flags.
    
    [compiler:gccgo] skip  # gccgo does not use -gcflags
    [!cgo] skip
    [!GOOS:linux] skip  # test only works if c-archive implies -shared
    [short] skip
    
    env GOCACHE=$WORK/gocache  # Looking for compile commands, so need a clean cache.
    go build -x -n -buildmode=c-archive -gcflags=all=-shared=false ./override.go
    stderr '^.*/compile (.* )?-shared (.* )?-shared=false'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 541 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.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.
    
    //go:build linux && gccgo && arm
    
    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
    	var newoffset int64
    	offsetLow := uint32(offset & 0xffffffff)
    	offsetHigh := uint32((offset >> 32) & 0xffffffff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 596 bytes
    - Viewed (0)
  4. test/fixedbugs/issue30862.go

    // license that can be found in the LICENSE file.
    
    // Test case for issue 30862.  This test as written will
    // fail for the main 'gc' compiler unless GOEXPERIMENT=fieldtrack
    // is set when building it, whereas gccgo has field tracking
    // enabled by default (hence the build tag below).
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 26 18:43:12 UTC 2021
    - 450 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/cover_runs.txt

    [compiler:gccgo] skip 'gccgo has no cover tool'
    [short] skip
    
    go test -short -coverpkg=strings strings regexp
    ! stdout '[^0-9]0\.0%'
    stdout  'strings.*coverage:.*[1-9][0-9.]+%'
    stdout  'regexp.*coverage:.*[1-9][0-9.]+%'
    
    go test -short -cover strings math regexp
    ! stdout '[^0-9]0\.0%'
    stdout  'strings.*coverage:.*[1-9][0-9.]+%'
    stdout  'math.*coverage:.*[1-9][0-9.]+%'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 413 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testshared/shared_test.go

    }
    
    // If gccgo is not available or not new enough, call t.Skip.
    func requireGccgo(t *testing.T) {
    	t.Helper()
    
    	if runtime.GOARCH == "ppc64" || runtime.GOARCH == "ppc64le" {
    		t.Skip("gccgo test skipped on PPC64 until issue #60798 is resolved")
    	}
    
    	gccgoName := os.Getenv("GCCGO")
    	if gccgoName == "" {
    		gccgoName = "gccgo"
    	}
    	gccgoPath, err := exec.LookPath(gccgoName)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  7. test/fixedbugs/bug515.go

    // compile
    
    // 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.
    
    // Caused a gofrontend crash.
    
    //go:build gccgo
    
    package p
    
    //go:notinheap
    type S1 struct{}
    
    type S2 struct {
    	r      interface{ Read([]byte) (int, error) }
    	s1, s2 []byte
    	p      *S1
    	n      uintptr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 06:22:23 UTC 2022
    - 392 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/gcc68255/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that it's OK to have C code that does nothing other than
    // initialize a global variable.  This used to fail with gccgo.
    
    package gcc68255
    
    /*
    #include "c.h"
    */
    import "C"
    
    func F() bool {
    	return C.v != nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 378 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/cover_asm.txt

    [short] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test cover for a package that has an assembly function.
    
    go test -outputdir=$WORK -coverprofile=cover.out coverasm
    go tool cover -func=$WORK/cover.out
    stdout '\tg\t*100.0%' # Check g is 100% covered.
    ! stdout '\tf\t*[0-9]' # Check for no coverage on the assembly function
    
    -- go.mod --
    module coverasm
    
    go 1.16
    -- p.go --
    package p
    
    func f()
    
    func g() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 604 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/cover_modes.txt

    env GO111MODULE=off
    
    # Coverage analysis should use 'set' mode by default,
    # and should merge coverage profiles correctly.
    
    [short] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    go test -short -cover encoding/binary errors -coverprofile=$WORK/cover.out
    ! stderr '[^0-9]0\.0%'
    ! stdout '[^0-9]0\.0%'
    
    grep -count=1 '^mode: set$' $WORK/cover.out
    grep 'errors\.go' $WORK/cover.out
    grep 'binary\.go' $WORK/cover.out
    
    [!race] stop
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 678 bytes
    - Viewed (0)
Back to top