Commit 1be74762 authored by Russ Cox's avatar Russ Cox

bug169

R=ken
OCL=35899
CL=35899
parent 4c3a85d7
......@@ -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);
......
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment