[commit: ghc] master: testsuite: Add testcase for #13075 (868bdcc)
git at git.haskell.org
git at git.haskell.org
Sun Apr 23 15:06:25 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/868bdcc8f152935803f6ff133766719ada077bdb/ghc
>---------------------------------------------------------------
commit 868bdcc8f152935803f6ff133766719ada077bdb
Author: Ben Gamari <ben at smart-cactus.org>
Date: Sun Apr 23 10:59:02 2017 -0400
testsuite: Add testcase for #13075
>---------------------------------------------------------------
868bdcc8f152935803f6ff133766719ada077bdb
testsuite/tests/typecheck/should_fail/T13075.hs | 7 +++++++
testsuite/tests/typecheck/should_fail/all.T | 1 +
2 files changed, 8 insertions(+)
diff --git a/testsuite/tests/typecheck/should_fail/T13075.hs b/testsuite/tests/typecheck/should_fail/T13075.hs
new file mode 100644
index 0000000..9c76434
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T13075.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE BangPatterns #-}
+
+module Main where
+
+!(Just x) = Nothing
+
+main = putStrLn "hi there!"
diff --git a/testsuite/tests/typecheck/should_fail/all.T b/testsuite/tests/typecheck/should_fail/all.T
index fe69ce0..e70f255 100644
--- a/testsuite/tests/typecheck/should_fail/all.T
+++ b/testsuite/tests/typecheck/should_fail/all.T
@@ -425,6 +425,7 @@ test('T12921', normal, compile_fail, [''])
test('T12973', normal, compile_fail, [''])
test('StrictBinds', normal, compile_fail, [''])
test('T13068', [extra_files(['T13068.hs', 'T13068a.hs', 'T13068.hs-boot', 'T13068m.hs'])], multimod_compile_fail, ['T13068m', ''])
+test('T13075', normal, compile_fail, [''])
test('T13105', normal, compile_fail, [''])
test('LevPolyBounded', normal, compile_fail, [''])
test('T13487', normal, compile, [''])
More information about the ghc-commits
mailing list