mirror of
https://github.com/golang/go
synced 2024-11-22 00:04:41 -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:
|
||||
{
|
||||
if(yylast == LSEMIBRACE)
|
||||
yyoptsemi('=');
|
||||
}
|
||||
|
||||
|
@ -815,6 +815,9 @@ talph:
|
||||
yyerror("illegal character 0x%ux", rune);
|
||||
goto l0;
|
||||
}
|
||||
// 0xb7 · is used for internal names
|
||||
if(!isalpharune(c) && !isdigitrune(c) && c != 0xb7)
|
||||
yyerror("invalid identifier character 0x%ux", rune);
|
||||
break;
|
||||
}
|
||||
c = getc();
|
||||
|
@ -173,7 +173,7 @@ func (req *Request) write(w io.Writer) os.Error {
|
||||
Loop:
|
||||
for {
|
||||
var nr, nw int;
|
||||
var er, ew os.Error
|
||||
var er, ew os.Error;
|
||||
if nr, er = req.Body.Read(buf); nr > 0 {
|
||||
if er == nil || er == os.EOF {
|
||||
fmt.Fprintf(w, "%x\r\n", nr);
|
||||
|
@ -9,5 +9,5 @@ package main
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
日本語 := 1; // Japanese ideographs are not letters
|
||||
日本語 := 1; // ERROR "identifier"
|
||||
}
|
@ -6,8 +6,7 @@
|
||||
|
||||
package main
|
||||
|
||||
// Multi-line string literal do not allow newline chars according to spec
|
||||
// but 6g accepts this code with the newlines interpreted as newlines.
|
||||
// Multi-line string literal now allowed.
|
||||
|
||||
const s = `
|
||||
Hello, World!
|
@ -105,15 +105,6 @@ BUG: bug159
|
||||
123
|
||||
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:7: constant -3 overflows uint
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user