mirror of
https://github.com/golang/go
synced 2024-11-24 20:20:03 -07:00
bug169
R=ken OCL=35899 CL=35899
This commit is contained in:
parent
4c3a85d73a
commit
1be74762c1
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user