Test Trac #5915
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 12 Mar 2012 09:01:49 +0000 (09:01 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 12 Mar 2012 09:01:49 +0000 (09:01 +0000)
testsuite/tests/simplCore/should_run/T5915.hs [new file with mode: 0644]
testsuite/tests/simplCore/should_run/T5915.stdout [new file with mode: 0644]
testsuite/tests/simplCore/should_run/all.T

diff --git a/testsuite/tests/simplCore/should_run/T5915.hs b/testsuite/tests/simplCore/should_run/T5915.hs
new file mode 100644 (file)
index 0000000..b7ae885
--- /dev/null
@@ -0,0 +1,5 @@
+module Main where
+
+test = seq (seq id (\a -> undefined a)) 
+
+main = print (test [0])
diff --git a/testsuite/tests/simplCore/should_run/T5915.stdout b/testsuite/tests/simplCore/should_run/T5915.stdout
new file mode 100644 (file)
index 0000000..21d5bf5
--- /dev/null
@@ -0,0 +1 @@
+[0]\r
index fb04d89..aa3cc7f 100644 (file)
@@ -50,6 +50,7 @@ test('T5441', extra_clean(['T5441a.o','T5441a.hi']),
               multimod_compile_and_run, ['T5441',''])
 test('T5603', normal, compile_and_run, [''])
 
-# Run this test *without* optimisation too
+# Run these tests *without* optimisation too
 test('T5625', [ only_ways(['normal','optasm']), exit_code(1) ], compile_and_run, [''])
 test('T5587', [ only_ways(['normal','optasm']), exit_code(1) ], compile_and_run, [''])
+test('T5915', only_ways(['normal','optasm']), compile_and_run, [''])