Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 271 for GCCGO (0.03 sec)

  1. test/fixedbugs/bug431.go

    // compile
    
    // Copyright 2012 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.
    
    // gccgo gave an invalid error ("floating point constant truncated to
    // integer") compiling this.
    
    package p
    
    const C = 1<<63 - 1
    
    func F(i int64) int64 {
    	return i
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 30 15:42:21 UTC 2012
    - 367 bytes
    - Viewed (0)
  2. test/fixedbugs/bug498.go

    // run
    
    // 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.
    
    // Gccgo incorrectly rejected an assignment to multiple instances of
    // the same variable.
    
    package main
    
    var a int
    
    func F() {
    	a, a, a = 1, 2, 3
    }
    
    func main() {
    	F()
    	if a != 3 {
    		panic(a)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 14:19:45 UTC 2016
    - 366 bytes
    - Viewed (0)
  3. 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)
  4. test/fixedbugs/gcc80226.go

    // compile
    
    // 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.
    
    // The gccgo compiler crashed while compiling a function that returned
    // multiple zero-sized structs.
    // https://gcc.gnu.org/PR80226.
    
    package p
    
    type S struct{}
    
    func F() (S, S) {
    	return S{}, S{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 28 20:05:34 UTC 2017
    - 373 bytes
    - Viewed (0)
  5. test/fixedbugs/bug475.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Variable in enclosing function with same name as field in struct
    // composite literal confused gccgo.
    
    package p
    
    type s1 struct {
    	f *s1
    }
    
    func F() {
    	var f *s1
    	_ = func() {
    		_ = s1{f: nil}
    	}
    	_ = f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 381 bytes
    - Viewed (0)
  6. test/fixedbugs/bug495.go

    // compile
    
    // Copyright 2015 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.
    
    // Gccgo used to give an incorrect error
    // bug495.go:16:2: error: missing statement after label
    
    package p
    
    func F(i int) {
    	switch i {
    	case 0:
    		goto lab
    	lab:
    		fallthrough
    	case 1:
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 13 22:05:23 UTC 2015
    - 363 bytes
    - Viewed (0)
  7. test/fixedbugs/bug499.go

    // run
    
    // 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.
    
    // Gccgo got confused when a type was used both for a map bucket type
    // and for a map key type.
    
    package main
    
    func main() {
    	_ = make(map[byte]byte)
    	_ = make(map[[8]byte]chan struct{})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 21:25:44 UTC 2016
    - 358 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