Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
1be74762
Commit
1be74762
authored
Oct 19, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug169
R=ken OCL=35899 CL=35899
parent
4c3a85d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
src/cmd/gc/lex.c
src/cmd/gc/lex.c
+4
-2
test/fixedbugs/bug169.go
test/fixedbugs/bug169.go
+0
-0
test/golden.out
test/golden.out
+0
-3
No files found.
src/cmd/gc/lex.c
View file @
1be74762
...
...
@@ -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
);
...
...
test/bugs/bug169.go
→
test/
fixed
bugs/bug169.go
View file @
1be74762
File moved
test/golden.out
View file @
1be74762
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment