diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-06-27 10:30:20 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-06-27 13:34:05 -0400 |
commit | 6567c815135e93f8550d526f81d13f31c0cd92b6 (patch) | |
tree | cf842eaf2045f5ae36579b5e64200c61a8fe7b75 /testsuite/tests | |
parent | 1e471265c1ea9b2c4e9709adc182c36d0635f071 (diff) | |
download | haskell-6567c815135e93f8550d526f81d13f31c0cd92b6.tar.gz |
Treat banged bindings as FunBinds
This is another attempt at resolving #13594 by treating strict variable
binds as FunBinds instead of PatBinds (as suggested in comment:1).
Test Plan: Validate
Reviewers: austin, alanz
Subscribers: rwbarton, thomie, mpickering
GHC Trac Issues: #13594
Differential Revision: https://phabricator.haskell.org/D3670
Diffstat (limited to 'testsuite/tests')
7 files changed, 15 insertions, 8 deletions
diff --git a/testsuite/tests/ghc-api/annotations/T10358.stdout b/testsuite/tests/ghc-api/annotations/T10358.stdout index ae1ec8587f..1854b2d116 100644 --- a/testsuite/tests/ghc-api/annotations/T10358.stdout +++ b/testsuite/tests/ghc-api/annotations/T10358.stdout @@ -11,12 +11,14 @@ ((Test10358.hs:(4,1)-(8,6),AnnSemi), [Test10358.hs:9:1]), ((Test10358.hs:(5,3)-(8,6),AnnIn), [Test10358.hs:8:3-4]), ((Test10358.hs:(5,3)-(8,6),AnnLet), [Test10358.hs:5:3-5]), -((Test10358.hs:5:7-10,AnnBang), [Test10358.hs:5:7]), +((Test10358.hs:5:7-16,AnnBang), [Test10358.hs:5:7]), ((Test10358.hs:5:7-16,AnnEqual), [Test10358.hs:5:12]), +((Test10358.hs:5:7-16,AnnFunId), [Test10358.hs:5:8-10]), ((Test10358.hs:5:7-16,AnnSemi), [Test10358.hs:5:17]), ((Test10358.hs:5:14-16,AnnVal), [Test10358.hs:5:15]), -((Test10358.hs:5:19-22,AnnBang), [Test10358.hs:5:19]), +((Test10358.hs:5:19-32,AnnBang), [Test10358.hs:5:19]), ((Test10358.hs:5:19-32,AnnEqual), [Test10358.hs:5:24]), +((Test10358.hs:5:19-32,AnnFunId), [Test10358.hs:5:20-22]), ((Test10358.hs:5:19-32,AnnSemi), [Test10358.hs:6:7]), ((Test10358.hs:5:26-32,AnnVal), [Test10358.hs:5:29]), ((Test10358.hs:6:7-16,AnnEqual), [Test10358.hs:6:10]), diff --git a/testsuite/tests/parser/should_compile/DumpParsedAst.stderr b/testsuite/tests/parser/should_compile/DumpParsedAst.stderr index 9f9cf659d4..ad3680e578 100644 --- a/testsuite/tests/parser/should_compile/DumpParsedAst.stderr +++ b/testsuite/tests/parser/should_compile/DumpParsedAst.stderr @@ -204,7 +204,8 @@ (FunRhs ({ DumpParsedAst.hs:11:1-4 } (Unqual {OccName: main})) - (Prefix)) + (Prefix) + (NoSrcStrict)) [] (Nothing) (GRHSs diff --git a/testsuite/tests/parser/should_compile/DumpRenamedAst.stderr b/testsuite/tests/parser/should_compile/DumpRenamedAst.stderr index d0b456a2cb..c873ee148b 100644 --- a/testsuite/tests/parser/should_compile/DumpRenamedAst.stderr +++ b/testsuite/tests/parser/should_compile/DumpRenamedAst.stderr @@ -17,7 +17,8 @@ (Match (FunRhs ({ DumpRenamedAst.hs:11:1-4 }{Name: main:DumpRenamedAst.main{v}}) - (Prefix)) + (Prefix) + (NoSrcStrict)) [] (Nothing) (GRHSs diff --git a/testsuite/tests/parser/should_compile/DumpTypecheckedAst.stderr b/testsuite/tests/parser/should_compile/DumpTypecheckedAst.stderr index 4b10222262..663a7d7f2e 100644 --- a/testsuite/tests/parser/should_compile/DumpTypecheckedAst.stderr +++ b/testsuite/tests/parser/should_compile/DumpTypecheckedAst.stderr @@ -244,7 +244,8 @@ (Match (FunRhs ({ DumpTypecheckedAst.hs:11:1-4 }{Name: main:DumpTypecheckedAst.main{v}}) - (Prefix)) + (Prefix) + (NoSrcStrict)) [] (Nothing) (GRHSs diff --git a/testsuite/tests/perf/compiler/all.T b/testsuite/tests/perf/compiler/all.T index 9c88cdc86c..f53a84c671 100644 --- a/testsuite/tests/perf/compiler/all.T +++ b/testsuite/tests/perf/compiler/all.T @@ -1131,7 +1131,9 @@ test('MultiLayerModules', test('T13701', [ compiler_stats_num_field('bytes allocated', [(platform('x86_64-apple-darwin'), 2217187888, 10), - (wordsize(64), 2511285600, 10), + (wordsize(64), 2188045288, 10), + # initial: 2511285600 + # 2017-06-23: 2188045288 treat banged variable bindings as FunBinds ]), pre_cmd('./genT13701'), extra_files(['genT13701']), diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T index 72d33c1d1c..dc7bd7b707 100644 --- a/testsuite/tests/typecheck/should_compile/all.T +++ b/testsuite/tests/typecheck/should_compile/all.T @@ -556,7 +556,7 @@ test('T13474', normal, compile, ['']) test('T13524', normal, compile, ['']) test('T13509', normal, compile, ['']) test('T13526', normal, compile, ['']) -test('T13594', expect_broken(13594), compile, ['']) +test('T13594', normal, compile, ['']) test('T13603', normal, compile, ['']) test('T13333', normal, compile, ['']) test('T13585', [extra_files(['T13585.hs', 'T13585a.hs', 'T13585b.hs'])], run_command, ['$MAKE -s --no-print-directory T13585']) diff --git a/testsuite/tests/typecheck/should_run/all.T b/testsuite/tests/typecheck/should_run/all.T index ab5ab4287c..346c312649 100755 --- a/testsuite/tests/typecheck/should_run/all.T +++ b/testsuite/tests/typecheck/should_run/all.T @@ -122,4 +122,4 @@ test('Typeable1', normal, compile_fail, ['']) test('TypeableEq', normal, compile_and_run, ['']) test('T13435', normal, compile_and_run, ['']) test('T11715', exit_code(1), compile_and_run, ['']) -test('T13594a', expect_broken(13594), ghci_script, ['T13594a.script']) +test('T13594a', normal, ghci_script, ['T13594a.script']) |