Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for GC_ERROR (0.12 sec)

  1. test/fixedbugs/issue11674.go

    // zero
    
    package p
    
    const x complex64 = 0
    const y complex128 = 0
    
    var _ = x / 1e-20
    var _ = x / 1e-50   // GC_ERROR "division by zero"
    var _ = x / 1e-1000 // GC_ERROR "division by zero"
    var _ = x / 1e-20i
    var _ = x / 1e-50i   // GC_ERROR "division by zero"
    var _ = x / 1e-1000i // GC_ERROR "division by zero"
    
    var _ = x / 1e-45 // smallest positive float32
    
    var _ = x / (1e-20 + 1e-20i)
    var _ = x / (1e-50 + 1e-20i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 22 17:50:13 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  2. test/const2.go

    )
    
    const LargeA = 1000000000000000000
    const LargeB = LargeA * LargeA * LargeA
    const LargeC = LargeB * LargeB * LargeB // GC_ERROR "constant multiplication overflow"
    
    const AlsoLargeA = LargeA << 400 << 400 >> 400 >> 400 // GC_ERROR "constant shift overflow"
    
    // Issue #42732.
    
    const a = 1e+500000000
    const b = a * a // ERROR "constant multiplication overflow|not representable"
    const c = b * b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 01 21:49:31 UTC 2020
    - 1008 bytes
    - Viewed (0)
  3. test/fixedbugs/issue22200b.go

    package p
    
    func f3(x *[1 << 31]byte) byte { // GC_ERROR "stack frame too large"
    	for _, b := range *x {
    		return b
    	}
    	return 0
    }
    func f4(x *[1 << 32]byte) byte { // GC_ERROR "stack frame too large"
    	for _, b := range *x {
    		return b
    	}
    	return 0
    }
    func f5(x *[1 << 33]byte) byte { // GC_ERROR "stack frame too large"
    	for _, b := range *x {
    		return b
    	}
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 601 bytes
    - Viewed (0)
  4. test/fixedbugs/bug195.go

    type I2 int
    
    type I3 interface{ int } // ERROR "interface"
    
    type S struct { // GC_ERROR "invalid recursive type"
    	x interface{ S } // GCCGO_ERROR "interface"
    }
    type I4 interface { // GC_ERROR "invalid recursive type: I4 refers to itself"
    	I4 // GCCGO_ERROR "interface"
    }
    
    type I5 interface { // GC_ERROR "invalid recursive type I5\n\tLINE:.* I5 refers to\n\tLINE+4:.* I6 refers to\n\tLINE:.* I5$"
    	I6
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 14:21:33 UTC 2022
    - 704 bytes
    - Viewed (0)
  5. test/fixedbugs/issue25507.go

    // >1GB to trigger failure, <2GB to work on 32-bit platforms.
    type large struct {
    	b [1500000000]byte
    }
    
    func (x large) f1() int { // GC_ERROR "stack frame too large"
    	return 5
    }
    
    func f2(x large) int { // GC_ERROR "stack frame too large"
    	return 5
    }
    
    func f3() (x large, i int) { // GC_ERROR "stack frame too large"
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 17:37:52 UTC 2020
    - 754 bytes
    - Viewed (0)
  6. test/fixedbugs/issue42058a.go

    // source code is governed by a BSD-style license that can be found in
    // the LICENSE file.
    
    package p
    
    var c chan [2 << 16]byte // GC_ERROR "channel element type too large"
    
    type T [1 << 17]byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 338 bytes
    - Viewed (0)
  7. test/fixedbugs/issue52697.go

    // license that can be found in the LICENSE file.
    
    //go:build !386 && !amd64p32 && !arm && !mips && !mipsle
    
    package main
    
    func g() { // GC_ERROR "stack frame too large"
    	xs := [3000 * 2000][33]int{}
    	for _, x := range xs {
    		if len(x) > 50 {
    
    		}
    	}
    }
    
    func main() { // GC_ERROR "stack frame too large"
    	defer f()
    	g()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 16:32:07 UTC 2023
    - 459 bytes
    - Viewed (0)
  8. test/fixedbugs/issue23732.go

    	_ = Foo{ // GCCGO_ERROR "too few expressions"
    		1,
    		2,
    		3,
    	} // GC_ERROR "too few values in"
    
    	_ = Foo{
    		1,
    		2,
    		3,
    		Bar{"A", "B"}, // ERROR "too many values in|too many expressions"
    	}
    
    	_ = Foo{ // GCCGO_ERROR "too few expressions"
    		1,
    		2,
    		Bar{"A", "B"}, // ERROR "too many values in|too many expressions"
    	} // GC_ERROR "too few values in"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 749 bytes
    - Viewed (0)
  9. test/fixedbugs/issue33460.go

    	}
    }
    
    const b = "b"
    
    var _ = map[string]int{
    	"a": 0,
    	b:   1,
    	"a": 2, // ERROR "previous key at LINE-2|duplicate key.*in map literal"
    	"b": 3, // GC_ERROR "previous key at LINE-2|duplicate key.*in map literal"
    	"b": 4, // GC_ERROR "previous key at LINE-3|duplicate key.*in map literal"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 825 bytes
    - Viewed (0)
  10. test/fixedbugs/bug251.go

    // errorcheck
    
    // 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.
    
    package main
    
    type I1 interface { // GC_ERROR "invalid recursive type"
    	m() I2
    	I2
    }
    
    type I2 interface {
    	I1 // GCCGO_ERROR "loop|interface"
    }
    
    
    var i1 I1 = i2
    var i2 I2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 21:45:05 UTC 2020
    - 362 bytes
    - Viewed (0)
Back to top