Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
d3900034
Commit
d3900034
authored
Jul 21, 2010
by
a
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests for trac#1344
parent
ac0c5544
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
41 additions
and
0 deletions
+41
-0
testsuite/tests/ghc-regress/parser/should_fail/T1344a.hs
testsuite/tests/ghc-regress/parser/should_fail/T1344a.hs
+7
-0
testsuite/tests/ghc-regress/parser/should_fail/T1344a.stderr
testsuite/tests/ghc-regress/parser/should_fail/T1344a.stderr
+3
-0
testsuite/tests/ghc-regress/parser/should_fail/T1344b.hs
testsuite/tests/ghc-regress/parser/should_fail/T1344b.hs
+4
-0
testsuite/tests/ghc-regress/parser/should_fail/T1344b.stderr
testsuite/tests/ghc-regress/parser/should_fail/T1344b.stderr
+3
-0
testsuite/tests/ghc-regress/parser/should_fail/T1344c.hs
testsuite/tests/ghc-regress/parser/should_fail/T1344c.hs
+4
-0
testsuite/tests/ghc-regress/parser/should_fail/T1344c.stderr
testsuite/tests/ghc-regress/parser/should_fail/T1344c.stderr
+3
-0
testsuite/tests/ghc-regress/parser/should_fail/all.T
testsuite/tests/ghc-regress/parser/should_fail/all.T
+3
-0
testsuite/tests/ghc-regress/parser/should_run/T1344.hs
testsuite/tests/ghc-regress/parser/should_run/T1344.hs
+10
-0
testsuite/tests/ghc-regress/parser/should_run/T1344.stdout
testsuite/tests/ghc-regress/parser/should_run/T1344.stdout
+3
-0
testsuite/tests/ghc-regress/parser/should_run/all.T
testsuite/tests/ghc-regress/parser/should_run/all.T
+1
-0
No files found.
testsuite/tests/ghc-regress/parser/should_fail/T1344a.hs
0 → 100644
View file @
d3900034
module
T1344a
where
a
=
"Hel
\x6c000000000000000
World"
b
=
"Hel
\x6c0000000000000000
World"
c
=
'
\1114112
'
testsuite/tests/ghc-regress/parser/should_fail/T1344a.stderr
0 → 100644
View file @
d3900034
T1344a.hs:3:16:
numeric escape sequence out of range at character '0'
testsuite/tests/ghc-regress/parser/should_fail/T1344b.hs
0 → 100644
View file @
d3900034
module
T1344b
where
b
=
"Hel
\x6c0000000000000000
World"
testsuite/tests/ghc-regress/parser/should_fail/T1344b.stderr
0 → 100644
View file @
d3900034
T1344b.hs:3:16:
numeric escape sequence out of range at character '0'
testsuite/tests/ghc-regress/parser/should_fail/T1344c.hs
0 → 100644
View file @
d3900034
module
T1344c
where
c
=
'
\1114112
'
testsuite/tests/ghc-regress/parser/should_fail/T1344c.stderr
0 → 100644
View file @
d3900034
T1344c.hs:3:13:
numeric escape sequence out of range at character '2'
testsuite/tests/ghc-regress/parser/should_fail/all.T
View file @
d3900034
...
...
@@ -60,3 +60,6 @@ test('T3751', normal, compile_fail, [''])
test
('
position001
',
normal
,
compile_fail
,
[''])
test
('
position002
',
normal
,
compile_fail
,
[''])
test
('
T1344a
',
normal
,
compile_fail
,
[''])
test
('
T1344b
',
normal
,
compile_fail
,
[''])
test
('
T1344c
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/parser/should_run/T1344.hs
0 → 100644
View file @
d3900034
-- Just new test. This would work without the bug being fixed.
a
=
'
\x10ffff
'
b
=
"Hello
\x000000002c\32
World
\o00000000000000000000000000000000041
"
c
=
"♯
\00\&
00
\0
"
main
=
do
print
a
putStrLn
b
print
c
testsuite/tests/ghc-regress/parser/should_run/T1344.stdout
0 → 100644
View file @
d3900034
'\1114111'
Hello, World!
"\9839\NUL00\NUL"
testsuite/tests/ghc-regress/parser/should_run/all.T
View file @
d3900034
...
...
@@ -2,3 +2,4 @@ test('readRun001', normal, compile_and_run, [''])
test
('
readRun002
',
normal
,
compile_and_run
,
[''])
test
('
readRun003
',
normal
,
compile_and_run
,
[''])
test
('
readRun004
',
expect_broken_for
(
1257
,
['
ghci
']),
compile_and_run
,
[''])
test
('
T1344
',
normal
,
compile_and_run
,
[''])
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