Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 64 for 6g (0.02 sec)

  1. test/fixedbugs/bug092.go

    package main
    
    func main() {
    	var a [1000] int64;  // this alone works
    	var b [10000] int64;  // this causes a runtime crash
    	_, _ = a, b;
    }
    
    /*
    uetli:~/Source/go1/test/bugs gri$ 6g bug092.go && 6l bug092.6 && 6.out
    Illegal instruction
    
    gri: array size matters, possibly related to stack overflow check?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 474 bytes
    - Viewed (0)
  2. test/fixedbugs/bug267.go

    // 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/bug332.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // type T int
    
    func main() {}
    
    // issue 1474
    
    // important: no newline on end of next line.
    // 6g used to print <epoch> instead of bug332.go:111
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 28 02:31:54 UTC 2020
    - 376 bytes
    - Viewed (0)
  4. test/fixedbugs/bug208.go

    // 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 main
    
    type	T struct
    {
    	f int;
    }
    
    // 6g used to get confused by the f:1 above
    // and allow uses of f that would be silently
    // dropped during the compilation.
    var _ = f;	// ERROR "undefined"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 391 bytes
    - Viewed (0)
  5. test/fixedbugs/bug240.go

    package main
    
    import . "unsafe"	// ERROR "not used"
    
    func main() {
    	var x int
    	println(unsafe.Sizeof(x)) // ERROR "undefined"
    }
    
    /*
    After a '.' import, "unsafe" shouldn't be defined as
    an identifier. 6g complains correctly for imports other
    than "unsafe".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:59 UTC 2012
    - 434 bytes
    - Viewed (0)
  6. test/fixedbugs/bug068.go

    package main
    
    const c = '\'';  // this works
    const s = "\'";  // ERROR "invalid|escape"
    
    /*
    There is no reason why the escapes need to be different inside strings and chars.
    
    uetli:~/go/test/bugs gri$ 6g bug068.go
    bug068.go:6: unknown escape sequence: '
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 520 bytes
    - Viewed (0)
  7. test/fixedbugs/bug076.go

    package main
    
    func f() {
    exit:
    	;
    	goto exit
    }
    
    
    func main() {
    exit:
    	; // this should be legal (labels not properly scoped?)
    	goto exit
    }
    
    /*
    uetli:~/Source/go/test/bugs gri$ 6g bug076.go 
    bug076.go:11: label redeclared: exit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 400 bytes
    - Viewed (0)
  8. test/fixedbugs/bug082.go

    package main
    
    func main() {
    	x := 0
    	x = ^x // unary ^ not yet implemented
    	if x != ^0 {
    		println(x, " ", ^0)
    		panic("fail")
    	}
    }
    
    /*
    uetli:~/Source/go/test/bugs gri$ 6g bug082.go
    bug082.go:7: fatal error: optoas: no entry COM-<int32>INT32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 413 bytes
    - Viewed (0)
  9. test/fixedbugs/bug207.go

    // run
    
    // 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 panic because 6g didn't generate
    // the code to fill in the ... argument to fmt.Sprint.
    
    package main
    
    import "fmt"
    
    type T struct {
    	a, b, c, d, e []int;
    }
    
    var t T
    
    func main() {
    	if fmt.Sprint("xxx", t) != "yyy" { 
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 402 bytes
    - Viewed (0)
  10. test/fixedbugs/bug086.go

    	if false {
    		return 0;
    	}
    	// we should not be able to return successfully w/o a return statement
    } // ERROR "return"
    
    func main() {
    	print(f(), "\n");
    }
    
    /*
    uetli:~/Source/go1/usr/gri/gosrc gri$ 6g bug.go && 6l bug.6 && 6.out
    4882
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 09 15:43:19 UTC 2013
    - 440 bytes
    - Viewed (0)
Back to top