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
4,313
Issues
4,313
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
385
Merge Requests
385
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
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
Glasgow Haskell Compiler
GHC
Commits
0860284d
Commit
0860284d
authored
Sep 27, 2007
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for
#1743
parent
2dc254ee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
0 deletions
+89
-0
testsuite/tests/ghc-regress/ghci.debugger/scripts/all.T
testsuite/tests/ghc-regress/ghci.debugger/scripts/all.T
+1
-0
testsuite/tests/ghc-regress/ghci.debugger/scripts/break026.hs
...suite/tests/ghc-regress/ghci.debugger/scripts/break026.hs
+7
-0
testsuite/tests/ghc-regress/ghci.debugger/scripts/break026.script
...e/tests/ghc-regress/ghci.debugger/scripts/break026.script
+23
-0
testsuite/tests/ghc-regress/ghci.debugger/scripts/break026.stdout
...e/tests/ghc-regress/ghci.debugger/scripts/break026.stdout
+58
-0
No files found.
testsuite/tests/ghc-regress/ghci.debugger/scripts/all.T
View file @
0860284d
...
...
@@ -56,6 +56,7 @@ test('break020', normal, ghci_script, ['break020.script'])
test
('
break021
',
normal
,
ghci_script
,
['
break021.script
'])
test
('
break024
',
normal
,
ghci_script
,
['
break024.script
'])
test
('
break025
',
expect_broken
(
1681
),
ghci_script
,
['
break025.script
'])
test
('
break026
',
expect_broken
(
1681
),
ghci_script
,
['
break026.script
'])
test
('
dynbrk001
',
normal
,
ghci_script
,
['
dynbrk001.script
'])
test
('
dynbrk002
',
normal
,
ghci_script
,
['
dynbrk002.script
'])
...
...
testsuite/tests/ghc-regress/ghci.debugger/scripts/break026.hs
0 → 100644
View file @
0860284d
module
Test
where
import
Prelude
hiding
(
foldl
)
foldl
f
c
xs
=
go
c
xs
where
go
c
[]
=
c
go
c
(
x
:
xs
)
=
go
(
f
c
x
)
xs
testsuite/tests/ghc-regress/ghci.debugger/scripts/break026.script
0 → 100644
View file @
0860284d
:load break026
:step foldl (+) 0 [1..5]
:step
:step
:step
:step
:step
:force c
-- answer should be 1
:load break026
:step foldl (+) 0 [1..5]
:step
:step
:step
:step
:step
-- a diversion to single-step the evaluation of c:
:step c `seq` ()
:step
-- end diversion
c
-- answer should be 1 again (not 0)
testsuite/tests/ghc-regress/ghci.debugger/scripts/break026.stdout
0 → 100644
View file @
0860284d
Stopped at break026.hs:(5,0)-(7,34)
_result :: t1 = _
Stopped at break026.hs:5:15-21
_result :: t1 = _
c :: t1 = _
go :: t1 -> [t] -> t1 = _
xs :: [t] = _
Stopped at break026.hs:(6,8)-(7,34)
_result :: t1 = _
f :: t1 -> t -> t1 = _
Stopped at break026.hs:7:22-34
_result :: t1 = _
c :: t1 = _
f :: t1 -> Integer -> t1 = _
x :: Integer = 1
xs :: [Integer] = _
Stopped at break026.hs:(6,8)-(7,34)
_result :: t1 = _
f :: t1 -> t -> t1 = _
Stopped at break026.hs:7:22-34
_result :: t1 = _
c :: t1 = _
f :: t1 -> Integer -> t1 = _
x :: Integer = 2
xs :: [Integer] = _
c = 1
Stopped at break026.hs:(5,0)-(7,34)
_result :: t1 = _
Stopped at break026.hs:5:15-21
_result :: t1 = _
c :: t1 = _
go :: t1 -> [t] -> t1 = _
xs :: [t] = _
Stopped at break026.hs:(6,8)-(7,34)
_result :: t1 = _
f :: t1 -> t -> t1 = _
Stopped at break026.hs:7:22-34
_result :: t1 = _
c :: t1 = _
f :: t1 -> Integer -> t1 = _
x :: Integer = 1
xs :: [Integer] = _
Stopped at break026.hs:(6,8)-(7,34)
_result :: t1 = _
f :: t1 -> t -> t1 = _
Stopped at break026.hs:7:22-34
_result :: t1 = _
c :: t1 = _
f :: t1 -> Integer -> t1 = _
x :: Integer = 2
xs :: [Integer] = _
Stopped at break026.hs:7:26-30
_result :: t1 = _
c :: t1 = _
f :: t1 -> Integer -> t1 = _
x :: Integer = 1
()
1
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