Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 271 for GCCGO (0.05 sec)

  1. test/fixedbugs/bug496.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 error:
    // <built-in>: error: redefinition of ‘s$F$hash’
    // <built-in>: note: previous definition of ‘s$F$hash’ was here
    // <built-in>: error: redefinition of ‘s$F$equal’
    // <built-in>: note: previous definition of ‘s$F$equal’ was here
    
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 20 13:31:30 UTC 2015
    - 589 bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. test/fixedbugs/issue31412b.go

    // errorcheck
    
    // Copyright 2019 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.
    
    // This code was incorrectly accepted by gccgo.
    
    package main
    
    type N string
    type M string
    
    const B N = "B"
    const C M = "C"
    
    func main() {
    	q := B + C // ERROR "mismatched types|incompatible types"
    	println(q)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:17:26 UTC 2019
    - 387 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/callback_c_gccgo.c

    // Copyright 2013 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 gccgo
    
    #include "_cgo_export.h"
    #include <stdint.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    /* Test calling panic from C.  This is what SWIG does.  */
    
    extern void _cgo_panic(const char *);
    extern void *_cgo_allocate(size_t);
    
    void
    callPanic(void)
    {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 452 bytes
    - Viewed (0)
  6. test/fixedbugs/issue10047.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.
    
    // Issue 10047: gccgo failed to compile a type switch where the switch variable
    // and the base type of a case share the same identifier.
    
    package main
    
    func main() {
    	type t int
    	var p interface{}
    	switch t := p.(type) {
    	case t:
    		_ = t
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 416 bytes
    - Viewed (0)
  7. test/fixedbugs/issue21770.go

    // errorcheck
    
    // 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.
    
    // Issue 21770: gccgo incorrectly accepts "p.f = 0" where p is **struct
    
    package p
    
    type PP **struct{ f int }
    
    func f() {
    	// anonymous type
    	var p **struct{ f int }
    	p.f = 0 // ERROR "field"
    	// named type
    	var p2 PP
    	p2.f = 0 // ERROR "field"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 13:32:23 UTC 2017
    - 422 bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/gccgosizes.go

    // Copyright 2019 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.
    
    // This is a copy of the file generated during the gccgo build process.
    // Last update 2019-01-22.
    
    package types2
    
    var gccgoArchSizes = map[string]*StdSizes{
    	"386":         {4, 4},
    	"alpha":       {8, 8},
    	"amd64":       {8, 8},
    	"amd64p32":    {4, 8},
    	"arm":         {4, 8},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:06 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. test/fixedbugs/issue7740.go

    func main() {
    	// adjust precision depending on compiler
    	var prec float64
    	switch runtime.Compiler {
    	case "gc":
    		prec = math.Inf(1) // exact precision using rational arithmetic
    	case "gccgo":
    		prec = 256
    	default:
    		// unknown compiler
    		return
    	}
    	p := 1 - math.Log(math.Abs(ulp))/math.Log(2)
    	if math.Abs(p-prec) > 1e-10 {
    		fmt.Printf("BUG: got %g; want %g\n", p, prec)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 25 18:53:24 UTC 2021
    - 736 bytes
    - Viewed (0)
  10. test/fixedbugs/gcc61265.go

    // compile
    
    // 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.
    
    // PR61265: The gccgo middle-end failed to represent array composite literals
    // where the elements are zero-sized values.
    // This is a reduction of a program reported by GoSmith.
    
    package p
    
    var a = [1][0]int{B}[0]
    var B = [0]int{}
    var c = [1]struct{}{D}[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 450 bytes
    - Viewed (0)
Back to top