[commit: testsuite] master: Test Trac #7237 (05ee370)

Simon Peyton Jones <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/05ee3702a08008c440c0faf6b43723a8ab928bb1

>---------------------------------------------------------------

commit 05ee3702a08008c440c0faf6b43723a8ab928bb1
Author: Simon Peyton Jones <[email protected]>
Date:   Tue Sep 18 08:46:40 2012 +0100

    Test Trac #7237

>---------------------------------------------------------------

 tests/codeGen/should_compile/T7237.hs |   10 ++++++++++
 tests/codeGen/should_compile/all.T    |    1 +
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/tests/codeGen/should_compile/T7237.hs b/tests/codeGen/should_compile/T7237.hs
new file mode 100644
index 0000000..8407d8d
--- /dev/null
+++ b/tests/codeGen/should_compile/T7237.hs
@@ -0,0 +1,10 @@
+module T7237 where
+
+import Data.List (foldl')
+
+data SPair = SPair { pX, pY :: Double } deriving (Eq,Show)
+
+data AList = AList { pairs :: [SPair] } deriving Show
+
+rnf' :: AList -> ()
+rnf' aList = foldl' (flip seq) () (pairs aList) `seq` ()
diff --git a/tests/codeGen/should_compile/all.T b/tests/codeGen/should_compile/all.T
index 1899cfd..fb65586 100644
--- a/tests/codeGen/should_compile/all.T
+++ b/tests/codeGen/should_compile/all.T
@@ -20,3 +20,4 @@ test('massive_array',
      [ if_arch('i386', expect_broken(7213)),
        if_arch('i386', omit_ways(['llvm', 'optllvm'])) ],
      compile, ['-fPIC'])
+test('T7237', normal, compile, [''])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.