Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for bug236d (0.2 sec)

  1. test/fixedbugs/bug236.go

    func main() {
    	gen = 'a'
    
    	if v1 != "aAbB" {
    		panic("BUG: bug236a")
    	}
    	if v2 != "cCdD" {
    		panic("BUG: bug236b")
    	}
    	if v3 != "eEfFgGhHiI" {
    		panic("BUG: bug236c")
    	}
    
    	switch "aAbB" {
    	case f(1) + f(2):
    	default:
    		panic("BUG: bug236d")
    	}
    
    	switch "cCdD" {
    	case g(f(3), f(4)):
    	default:
    		panic("BUG: bug236e")
    	}
    
    	switch "eEfFgGhHiI" {
    	case f(5) + f(6) + f(7) + f(8) + f(9):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 831 bytes
    - Viewed (0)
  2. test/fixedbugs/bug267.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bug267
    
    type T []int
    
    var a []bool
    
    func f1() {
    	if a[T{42}[0]] {
    	}
    	// if (a[T{42}[0]]) {}  // this compiles
    }
    
    /*
    6g bugs/bug267.go
    bugs/bug267.go:14: syntax error: unexpected {, expecting :
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:41:07 UTC 2021
    - 377 bytes
    - Viewed (0)
  3. test/fixedbugs/bug239.go

    // Test case for issue 475. This file should compile.
    
    package main
    
    import . "unsafe"
    
    func main() {
    	var x int
    	println(Sizeof(x))
    }
    
    /*
    bug239.go:11: imported and not used: unsafe
    bug239.go:15: undefined: Sizeof
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 390 bytes
    - Viewed (0)
  4. test/fixedbugs/bug286.go

    	test2(x)
    	test3(x)
    	if error_ {
    		panic("wrong method called")
    	}
    }
    
    /*
    6g bug286.go && 6l bug286.6 && 6.out
    test2 called g
    panic: wrong method called
    
    panic PC=0x24e040
    runtime.panic+0x7c /home/gri/go1/src/pkg/runtime/proc.c:1012
    	runtime.panic(0x0, 0x24e0a0)
    main.main+0xef /home/gri/go1/test/bugs/bug286.go:76
    	main.main()
    mainstart+0xf /home/gri/go1/src/pkg/runtime/amd64/asm.s:60
    	mainstart()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  5. test/fixedbugs/bug206.go

    throw+0x33 /home/gri/go/src/pkg/runtime/runtime.c:71
    	throw(0x470f8, 0x0)
    sys·throwindex+0x1c /home/gri/go/src/pkg/runtime/runtime.c:45
    	sys·throwindex()
    main·f+0x26 /home/gri/go/test/bugs/bug206.go:16
    	main·f(0x2b9560, 0x0)
    main·main+0xc3 /home/gri/go/test/bugs/bug206.go:23
    	main·main()
    mainstart+0xf /home/gri/go/src/pkg/runtime/amd64/asm.s:55
    	mainstart()
    goexit /home/gri/go/src/pkg/runtime/proc.c:133
    	goexit()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 1K bytes
    - Viewed (0)
  6. test/fixedbugs/bug232.go

    // compile
    
    // Copyright 2009 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 bug232
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 218 bytes
    - Viewed (0)
  7. test/fixedbugs/bug235.go

    // compile
    
    // Copyright 2009 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.
    
    // used to crash the compiler
    
    package bug235
    
    type T struct {
    	x [4]byte
    }
    
    var p *T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 270 bytes
    - Viewed (0)
  8. test/fixedbugs/bug233.go

    // compile
    
    // Copyright 2009 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 bug233
    import p "fmt"
    var _ = p.Print
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 231 bytes
    - Viewed (0)
  9. test/fixedbugs/bug261.go

    package main
    
    var n int
    
    func f() int {
    	n++
    	return n
    }
    
    func main() {
    	x := []int{0,1,2,3,4,5,6,7,8,9,10}
    	n = 5
    	y := x[f():f()]
    	if len(y) != 1 || y[0] != 6 {
    		println("BUG bug261", len(y), y[0])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 374 bytes
    - Viewed (0)
  10. test/fixedbugs/bug216.go

    // Used to be rejected
    // https://golang.org/issue/188
    
    package main
    
    func complexSqrt(i int) (int, int)	{ return 0, 1 }
    
    var re, im = complexSqrt(-1)
    
    func main() {
    	if re != 0 || im != 1 {
    		println("BUG: bug216: want 0,-1 have ", re, im)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 11 14:36:33 UTC 2015
    - 418 bytes
    - Viewed (0)
Back to top