[commit: ghc] wip/T16039: begin testing (818c918)

git at git.haskell.org git at git.haskell.org
Sun Mar 31 15:07:38 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T16039
Link       : http://ghc.haskell.org/trac/ghc/changeset/818c918af3f41864f4a421c1d8a6865edd4f0a33/ghc

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

commit 818c918af3f41864f4a421c1d8a6865edd4f0a33
Author: Gabor Greif <ggreif at gmail.com>
Date:   Thu Dec 27 15:53:06 2018 +0100

    begin testing


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

818c918af3f41864f4a421c1d8a6865edd4f0a33
 testsuite/tests/simplCore/should_compile/T16039.hs | 13 +++++++++++++
 testsuite/tests/simplCore/should_compile/all.T     |  2 ++
 2 files changed, 15 insertions(+)

diff --git a/testsuite/tests/simplCore/should_compile/T16039.hs b/testsuite/tests/simplCore/should_compile/T16039.hs
new file mode 100644
index 0000000..3f37a31
--- /dev/null
+++ b/testsuite/tests/simplCore/should_compile/T16039.hs
@@ -0,0 +1,13 @@
+{-# language MultiParamTypeClasses #-}
+
+module T16039 (T16039(..)) where
+
+import GHC.Magic (noinline)
+
+foo = 7 + 35
+
+class T16039 where
+  method :: Integer
+
+instance T16039 where
+  method = noinline foo
diff --git a/testsuite/tests/simplCore/should_compile/all.T b/testsuite/tests/simplCore/should_compile/all.T
index 1f6ef00..6f68ec2 100644
--- a/testsuite/tests/simplCore/should_compile/all.T
+++ b/testsuite/tests/simplCore/should_compile/all.T
@@ -327,3 +327,5 @@ test('T15631',
      run_command,
      ['$MAKE -s --no-print-directory T15631'])
 test('T15673', normal, compile, ['-O'])
+
+test('T16039', normal, compile, ['-O'])



More information about the ghc-commits mailing list