[commit: ghc] master: Add test for #12732 (60343a4)
git at git.haskell.org
git at git.haskell.org
Fri Oct 28 21:03:10 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/60343a419ab44d387cfd11f0dd2b522fd922e63a/ghc
>---------------------------------------------------------------
commit 60343a419ab44d387cfd11f0dd2b522fd922e63a
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date: Fri Oct 28 17:00:29 2016 -0400
Add test for #12732
>---------------------------------------------------------------
60343a419ab44d387cfd11f0dd2b522fd922e63a
testsuite/tests/partial-sigs/should_fail/T12732.hs | 6 ++++++
testsuite/tests/partial-sigs/should_fail/T12732.stderr | 6 ++++++
testsuite/tests/partial-sigs/should_fail/all.T | 1 +
3 files changed, 13 insertions(+)
diff --git a/testsuite/tests/partial-sigs/should_fail/T12732.hs b/testsuite/tests/partial-sigs/should_fail/T12732.hs
new file mode 100644
index 0000000..60bcde6
--- /dev/null
+++ b/testsuite/tests/partial-sigs/should_fail/T12732.hs
@@ -0,0 +1,6 @@
+module T12732 where
+
+(a ... b) xs
+ | a == x
+ , (l, _:r) <- break (== x) xs
+ = l ++ [x]
diff --git a/testsuite/tests/partial-sigs/should_fail/T12732.stderr b/testsuite/tests/partial-sigs/should_fail/T12732.stderr
new file mode 100644
index 0000000..5188f62
--- /dev/null
+++ b/testsuite/tests/partial-sigs/should_fail/T12732.stderr
@@ -0,0 +1,6 @@
+
+T12732.hs:4:10: error: Variable not in scope: x
+
+T12732.hs:5:27: error: Variable not in scope: x
+
+T12732.hs:6:11: error: Variable not in scope: x
diff --git a/testsuite/tests/partial-sigs/should_fail/all.T b/testsuite/tests/partial-sigs/should_fail/all.T
index dca7f48..42bd088 100644
--- a/testsuite/tests/partial-sigs/should_fail/all.T
+++ b/testsuite/tests/partial-sigs/should_fail/all.T
@@ -63,3 +63,4 @@ test('T11976', normal, compile_fail, [''])
test('PatBind3', normal, compile_fail, [''])
test('T12039', normal, compile_fail, [''])
test('T12634', normal, compile_fail, [''])
+test('T12732', normal, compile_fail, ['-fobject-code -fdefer-typed-holes'])
More information about the ghc-commits
mailing list