Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for bug111 (0.08 sec)

  1. test/fixedbugs/bug111.go

    type Stucky struct {
    	n int
    }
    
    func (s *Stucky) Me() Iffy {
    	ncall++;
    	return s
    }
    
    func main() {
    	s := new(Stucky);
    	i := s.Me();
    	j := i.Me();
    	j.Me();
    	if ncall != 3 {
    		panic("bug111")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 427 bytes
    - Viewed (0)
  2. test/fixedbugs/bug151.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bug151
    
    type S string
    
    type Empty interface {}
    
    func (v S) Less(e Empty) bool {
    	return v < e.(S);
    }
    
    /*
    bugs/bug151.go:10: illegal types for operand: CALL
    	string
    	S
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 350 bytes
    - Viewed (0)
  3. test/fixedbugs/bug118.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 bug118
    
    func Send(c chan int) int {
    	select {
    	default:
    		return 1;
    	}
    	return 2;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 264 bytes
    - Viewed (0)
  4. test/fixedbugs/bug161.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package P
    
    const a = 0;
    
    func f(a int) {
    	a = 0;
    }
    
    /*
    bug161.go:8: operation LITERAL not allowed in assignment context
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 295 bytes
    - Viewed (0)
  5. test/fixedbugs/bug112.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type T struct { s string }
    var t = T{"hi"}
    
    func main() {}
    
    /*
    bug112.go:6: illegal conversion of constant to T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 301 bytes
    - Viewed (0)
  6. test/fixedbugs/bug119.go

    }
    
    func main() {
    	a := &[]int{12}
    	if x := (*a)[0]; x != 12 {
    		panic(2)
    	}
    	if x := foo(*a); x != 12 {
    		// fails (x is incorrect)
    		panic(3)
    	}
    }
    
    /*
    uetli:~/Source/go1/test/bugs gri$ 6go bug119
    3 70160
    
    panic on line 83 PC=0x14d6
    0x14d6?zi
    	mainĀ·main(23659, 0, 1, ...)
    	mainĀ·main(0x5c6b, 0x1, 0x7fff5fbff830, ...)
    0x52bb?zi
    	mainstart(1, 0, 1606416432, ...)
    	mainstart(0x1, 0x7fff5fbff830, 0x0, ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 697 bytes
    - Viewed (0)
  7. test/fixedbugs/bug011.go

    	x, y int
    }
    
    func (t *T) m(a int, b float64) int {
    	return (t.x + a) * (t.y + int(b))
    }
    
    func main() {
    	var t *T = new(T)
    	t.x = 1
    	t.y = 2
    	r10 := t.m(1, 3.0)
    	_ = r10
    }
    /*
    bug11.go:16: fatal error: walktype: switch 1 unknown op CALLMETH l(16) <int32>INT32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 460 bytes
    - Viewed (0)
  8. test/fixedbugs/bug109.go

    // license that can be found in the LICENSE file.
    
    package bug109
    
    func f(a float64) float64 {
    	e := 1.0
    	e = e * a
    	return e
    }
    
    /*
    6g bugs/bug109.go
    bugs/bug109.go:5: illegal types for operand: MUL
    	(<float64>FLOAT64)
    	(<float32>FLOAT32)
    bugs/bug109.go:5: illegal types for operand: AS
    	(<float64>FLOAT64)
    bugs/bug109.go:6: illegal types for operand: RETURN
    	(<float32>FLOAT32)
    	(<float64>FLOAT64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 523 bytes
    - Viewed (0)
  9. test/fixedbugs/bug128.go

    	}
    	switch tag := 0; tag {
    		// empty switch is allowed according to syntax
    		// unclear why it shouldn't be allowed
    	}
    }
    
    /*
    uetli:~/Source/go1/test/bugs gri$ 6g bug127.go 
    bug127.go:5: switch statement must have case labels
    bug127.go:9: switch statement must have case labels
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 576 bytes
    - Viewed (0)
  10. test/fixedbugs/bug016.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	var i int = 100
    	i = i << -3 // ERROR "overflows|negative"
    }
    
    /*
    ixedbugs/bug016.go:7: overflow converting constant to <uint32>UINT32
    fixedbugs/bug016.go:7: illegal types for operand: AS
    	(<int32>INT32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 410 bytes
    - Viewed (0)
Back to top