1
0
mirror of https://github.com/golang/go synced 2024-11-24 20:20:03 -07:00
R=ken
OCL=35899
CL=35899
This commit is contained in:
Russ Cox 2009-10-19 19:55:17 -07:00
parent 4c3a85d73a
commit 1be74762c1
3 changed files with 4 additions and 5 deletions

View File

@ -537,8 +537,10 @@ l0:
case '\'':
/* '.' */
if(escchar('\'', &escflag, &v))
v = '\''; // allow '''
if(escchar('\'', &escflag, &v)) {
yyerror("empty character literal or unescaped ' in character literal");
v = '\'';
}
if(!escchar('\'', &escflag, &v)) {
yyerror("missing '");
ungetc(v);

View File

@ -147,9 +147,6 @@ BUG: errchk: command succeeded unexpectedly
123
BUG: should fail
=========== bugs/bug169.go
BUG: errchk: command succeeded unexpectedly
=========== bugs/bug193.go
BUG: errchk: bugs/bug193.go:14: missing expected error: 'shift'