[commit: ghc] wip/T16039: begin testing (705e67b)
git at git.haskell.org
git at git.haskell.org
Thu Dec 27 21:51:26 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T16039
Link : http://ghc.haskell.org/trac/ghc/changeset/705e67b3ccc9f41167221fc370116d4aa315c561/ghc
>---------------------------------------------------------------
commit 705e67b3ccc9f41167221fc370116d4aa315c561
Author: Gabor Greif <ggreif at gmail.com>
Date: Thu Dec 27 15:53:06 2018 +0100
begin testing
>---------------------------------------------------------------
705e67b3ccc9f41167221fc370116d4aa315c561
T16039.hs | 11 +++++++++++
testsuite/tests/simplCore/should_compile/all.T | 2 ++
2 files changed, 13 insertions(+)
diff --git a/T16039.hs b/T16039.hs
new file mode 100644
index 0000000..2118d03
--- /dev/null
+++ b/T16039.hs
@@ -0,0 +1,11 @@
+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