mirror of
https://github.com/golang/go
synced 2024-11-25 21:47:59 -07:00
bug163 bug164 bug166
R=ken OCL=30889 CL=30889
This commit is contained in:
parent
df36629d76
commit
5d5904bb4d
@ -344,6 +344,7 @@ common_dcl:
|
|||||||
|
|
||||||
varoptsemi:
|
varoptsemi:
|
||||||
{
|
{
|
||||||
|
if(yylast == LSEMIBRACE)
|
||||||
yyoptsemi('=');
|
yyoptsemi('=');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -815,6 +815,9 @@ talph:
|
|||||||
yyerror("illegal character 0x%ux", rune);
|
yyerror("illegal character 0x%ux", rune);
|
||||||
goto l0;
|
goto l0;
|
||||||
}
|
}
|
||||||
|
// 0xb7 · is used for internal names
|
||||||
|
if(!isalpharune(c) && !isdigitrune(c) && c != 0xb7)
|
||||||
|
yyerror("invalid identifier character 0x%ux", rune);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
c = getc();
|
c = getc();
|
||||||
|
@ -173,7 +173,7 @@ func (req *Request) write(w io.Writer) os.Error {
|
|||||||
Loop:
|
Loop:
|
||||||
for {
|
for {
|
||||||
var nr, nw int;
|
var nr, nw int;
|
||||||
var er, ew os.Error
|
var er, ew os.Error;
|
||||||
if nr, er = req.Body.Read(buf); nr > 0 {
|
if nr, er = req.Body.Read(buf); nr > 0 {
|
||||||
if er == nil || er == os.EOF {
|
if er == nil || er == os.EOF {
|
||||||
fmt.Fprintf(w, "%x\r\n", nr);
|
fmt.Fprintf(w, "%x\r\n", nr);
|
||||||
|
@ -9,5 +9,5 @@ package main
|
|||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
日本語 := 1; // Japanese ideographs are not letters
|
日本語 := 1; // ERROR "identifier"
|
||||||
}
|
}
|
@ -6,8 +6,7 @@
|
|||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
// Multi-line string literal do not allow newline chars according to spec
|
// Multi-line string literal now allowed.
|
||||||
// but 6g accepts this code with the newlines interpreted as newlines.
|
|
||||||
|
|
||||||
const s = `
|
const s = `
|
||||||
Hello, World!
|
Hello, World!
|
@ -105,15 +105,6 @@ BUG: bug159
|
|||||||
123
|
123
|
||||||
BUG: should fail
|
BUG: should fail
|
||||||
|
|
||||||
=========== bugs/bug163.go
|
|
||||||
BUG: should not compile
|
|
||||||
|
|
||||||
=========== bugs/bug164.go
|
|
||||||
BUG: should not compile
|
|
||||||
|
|
||||||
=========== bugs/bug166.go
|
|
||||||
BUG: errchk: command succeeded unexpectedly: 6g bugs/bug166.go
|
|
||||||
|
|
||||||
=========== fixedbugs/bug016.go
|
=========== fixedbugs/bug016.go
|
||||||
fixedbugs/bug016.go:7: constant -3 overflows uint
|
fixedbugs/bug016.go:7: constant -3 overflows uint
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user