diff options
| author | mniip <mniip@mniip.com> | 2016-08-23 13:19:02 -0400 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2016-08-23 15:34:00 -0400 |
| commit | 1766bb3cfd1460796c78bd5651f89d53603586f9 (patch) | |
| tree | 238a418fcaacd99d87ea79ba03cf36cc05b4e93d /testsuite/tests/ghci.debugger/scripts | |
| parent | 89facad267ff79f1f20b4866428693f423c2d0cc (diff) | |
| download | haskell-1766bb3cfd1460796c78bd5651f89d53603586f9.tar.gz | |
RtClosureInspect: Fix off-by-one error in cvReconstructType
Replaced error-prone index manipulation on a pointer array with
a simple fold on the array elements.
Test Plan: Added a test case that triggers the bug
Reviewers: hvr, austin, bgamari
Reviewed By: bgamari
Subscribers: simonpj, thomie
Differential Revision: https://phabricator.haskell.org/D2439
GHC Trac Issues: #12458
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts')
| -rw-r--r-- | testsuite/tests/ghci.debugger/scripts/T12458.script | 4 | ||||
| -rw-r--r-- | testsuite/tests/ghci.debugger/scripts/T12458.stdout | 2 | ||||
| -rw-r--r-- | testsuite/tests/ghci.debugger/scripts/all.T | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/T12458.script b/testsuite/tests/ghci.debugger/scripts/T12458.script new file mode 100644 index 0000000000..5d4120d98c --- /dev/null +++ b/testsuite/tests/ghci.debugger/scripts/T12458.script @@ -0,0 +1,4 @@ +data D a = D +d = D +:print d +d `seq` () diff --git a/testsuite/tests/ghci.debugger/scripts/T12458.stdout b/testsuite/tests/ghci.debugger/scripts/T12458.stdout new file mode 100644 index 0000000000..2a616b0f71 --- /dev/null +++ b/testsuite/tests/ghci.debugger/scripts/T12458.stdout @@ -0,0 +1,2 @@ +d = (_t1::D a) +() diff --git a/testsuite/tests/ghci.debugger/scripts/all.T b/testsuite/tests/ghci.debugger/scripts/all.T index b17d205dd2..6571c7f6dc 100644 --- a/testsuite/tests/ghci.debugger/scripts/all.T +++ b/testsuite/tests/ghci.debugger/scripts/all.T @@ -86,3 +86,4 @@ test('T2740', normal, ghci_script, ['T2740.script']) test('getargs', normal, ghci_script, ['getargs.script']) test('T7386', normal, ghci_script, ['T7386.script']) test('T8557', normal, ghci_script, ['T8557.script']) +test('T12458', normal, ghci_script, ['T12458.script']) |
