[commit: testsuite] master: Test Trac #7562 (a91cac4)

Simon Peyton Jones simonpj at microsoft.com
Mon Jan 14 18:12:16 CET 2013


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

On branch  : master

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

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

commit a91cac4fe15bc7751da34cc6507976d67c5afadc
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Jan 10 16:54:11 2013 +0000

    Test Trac #7562

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

 tests/typecheck/should_compile/T7562.hs     |    3 +++
 tests/typecheck/should_compile/T7562.stderr |    5 +++++
 tests/typecheck/should_compile/all.T        |    1 +
 3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/tests/typecheck/should_compile/T7562.hs b/tests/typecheck/should_compile/T7562.hs
new file mode 100644
index 0000000..40634e2
--- /dev/null
+++ b/tests/typecheck/should_compile/T7562.hs
@@ -0,0 +1,3 @@
+module T7562 where
+
+data Pair2 = Pair2 {-# UNPACK #-} Int
diff --git a/tests/typecheck/should_compile/T7562.stderr b/tests/typecheck/should_compile/T7562.stderr
new file mode 100644
index 0000000..1460def
--- /dev/null
+++ b/tests/typecheck/should_compile/T7562.stderr
@@ -0,0 +1,5 @@
+
+T7562.hs:3:14: Warning:
+    UNPACK pragma lacks '!' on the first argument of `Pair2'
+    In the definition of data constructor `Pair2'
+    In the data declaration for `Pair2'
diff --git a/tests/typecheck/should_compile/all.T b/tests/typecheck/should_compile/all.T
index 57c80f1..94ebf41 100644
--- a/tests/typecheck/should_compile/all.T
+++ b/tests/typecheck/should_compile/all.T
@@ -396,3 +396,4 @@ test('holes3', normal, compile_fail, [''])
 test('T7408', normal, compile, [''])
 test('UnboxStrictPrimitiveFields', normal, compile, [''])
 test('T7541', normal, compile, [''])
+test('T7562', normal, compile, [''])





More information about the ghc-commits mailing list