[commit: testsuite] master: Test for Trac #7571. (a97083a)

David Terei davidterei at gmail.com
Tue Jan 22 21:00:09 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/a97083aa456ca1bdb9239e8be77bd7a90b7103ea

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

commit a97083aa456ca1bdb9239e8be77bd7a90b7103ea
Author: Austin Seipp <mad.one at gmail.com>
Date:   Sun Jan 13 03:51:36 2013 -0600

    Test for Trac #7571.
    
    Signed-off-by: David Terei <davidterei at gmail.com>

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

 tests/llvm/should_compile/T7571.cmm |   11 +++++++++++
 tests/llvm/should_compile/all.T     |    2 +-
 2 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/tests/llvm/should_compile/T7571.cmm b/tests/llvm/should_compile/T7571.cmm
new file mode 100644
index 0000000..d4e89d5
--- /dev/null
+++ b/tests/llvm/should_compile/T7571.cmm
@@ -0,0 +1,11 @@
+#include "Cmm.h"
+
+testLiteralBranch (W_ dst, W_ src)
+{
+  if (1) {
+    prim %memcpy(dst, src, 1024, 4);
+  } else {
+    prim %memcpy(dst, src, 512, 8);
+  }
+  return ();
+}
diff --git a/tests/llvm/should_compile/all.T b/tests/llvm/should_compile/all.T
index 29e5ae1..d0ce873 100644
--- a/tests/llvm/should_compile/all.T
+++ b/tests/llvm/should_compile/all.T
@@ -10,4 +10,4 @@ test('5054_2', reqlib('hmatrix'), compile, ['-package hmatrix'])
 test('5486', normal, compile, [''])
 test('5681', normal, compile, [''])
 test('6158', [reqlib('vector'), reqlib('primitive')], compile, ['-package vector -package primitive'])
-
+test('T7571', cmm_src, compile, [''])





More information about the ghc-commits mailing list