mirror of
https://github.com/golang/go
synced 2024-11-24 22:37:56 -07:00
bug169
R=ken OCL=35899 CL=35899
This commit is contained in:
parent
4c3a85d73a
commit
1be74762c1
@ -537,8 +537,10 @@ l0:
|
|||||||
|
|
||||||
case '\'':
|
case '\'':
|
||||||
/* '.' */
|
/* '.' */
|
||||||
if(escchar('\'', &escflag, &v))
|
if(escchar('\'', &escflag, &v)) {
|
||||||
v = '\''; // allow '''
|
yyerror("empty character literal or unescaped ' in character literal");
|
||||||
|
v = '\'';
|
||||||
|
}
|
||||||
if(!escchar('\'', &escflag, &v)) {
|
if(!escchar('\'', &escflag, &v)) {
|
||||||
yyerror("missing '");
|
yyerror("missing '");
|
||||||
ungetc(v);
|
ungetc(v);
|
||||||
|
@ -147,9 +147,6 @@ BUG: errchk: command succeeded unexpectedly
|
|||||||
123
|
123
|
||||||
BUG: should fail
|
BUG: should fail
|
||||||
|
|
||||||
=========== bugs/bug169.go
|
|
||||||
BUG: errchk: command succeeded unexpectedly
|
|
||||||
|
|
||||||
=========== bugs/bug193.go
|
=========== bugs/bug193.go
|
||||||
BUG: errchk: bugs/bug193.go:14: missing expected error: 'shift'
|
BUG: errchk: bugs/bug193.go:14: missing expected error: 'shift'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user