summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail099.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail099.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail099.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail099.hs b/testsuite/tests/typecheck/should_fail/tcfail099.hs
new file mode 100644
index 0000000000..4cfa22c0f0
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail099.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE ExistentialQuantification #-}
+
+-- This bogus program slipped past GHC 5.02!
+
+module ShouldFail where
+
+data DS = forall a. C (a -> Int)
+
+call (C f) arg = f arg