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. test/fixedbugs/gcc61204.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.
    
    // PR61204: Making temporaries for zero-sized types caused an ICE in gccgo.
    // This is a reduction of a program reported by GoSmith.
    
    package main
    
    func main() {
    	type t [0]int
    	var v t
    	v, _ = [0]int{}, 0
    	_ = v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 387 bytes
    - Viewed (0)
  10. test/fixedbugs/issue21253.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.
    
    // Gccgo crashed compiling this code due to failing to finalize
    // interfaces in the right order.
    
    package p
    
    type s1 struct {
    	f m
    	I
    }
    
    type m interface {
    	Mm(*s2)
    }
    
    type s2 struct {
    	*s1
    }
    
    type I interface {
    	MI()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 18:09:52 UTC 2017
    - 393 bytes
    - Viewed (0)
Back to top