[commit: testsuite] master: Add a test for #7776 (f0a3b1c)

Ian Lynagh igloo at earth.li
Mon Mar 18 12:04:24 CET 2013


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

On branch  : master

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

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

commit f0a3b1c026e7dd1b4a36918bd68af4f6907b388d
Author: Ian Lynagh <ian at well-typed.com>
Date:   Mon Mar 18 10:13:29 2013 +0000

    Add a test for #7776

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

 tests/parser/should_compile/T7776.hs |    6 ++++++
 tests/parser/should_compile/all.T    |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tests/parser/should_compile/T7776.hs b/tests/parser/should_compile/T7776.hs
new file mode 100644
index 0000000..4dc689e
--- /dev/null
+++ b/tests/parser/should_compile/T7776.hs
@@ -0,0 +1,6 @@
+
+module T7776 where
+
+f :: Int -> Int -> Int
+f x y = let a ~# b = a + b
+        in x ~# y
diff --git a/tests/parser/should_compile/all.T b/tests/parser/should_compile/all.T
index b10cd2c..1129856 100644
--- a/tests/parser/should_compile/all.T
+++ b/tests/parser/should_compile/all.T
@@ -95,3 +95,4 @@ test('ParserLambdaCase', when(compiler_lt('ghc', '7.5'), skip), compile, [''])
 test('T5243', extra_clean(['T5243A.hi', 'T5243A.o']),
      multimod_compile, ['T5243',''])
 test('T7118', normal, compile, [''])
+test('T7776', normal, compile, [''])





More information about the ghc-commits mailing list