summaryrefslogtreecommitdiff
path: root/testsuite/tests/stranal/should_run/T14290.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/stranal/should_run/T14290.hs')
-rw-r--r--testsuite/tests/stranal/should_run/T14290.hs17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/tests/stranal/should_run/T14290.hs b/testsuite/tests/stranal/should_run/T14290.hs
new file mode 100644
index 0000000000..7093239d4c
--- /dev/null
+++ b/testsuite/tests/stranal/should_run/T14290.hs
@@ -0,0 +1,17 @@
+{-# LANGUAGE ExistentialQuantification #-}
+module Main (main) where
+
+main :: IO ()
+main = r `seq` return ()
+
+r :: Rec
+r = Rec{ a = error "xxx", b = 3, c = True }
+
+class C t
+instance C Bool
+
+data Rec = forall t. C t => Rec
+ { a :: ()
+ , b :: !Int
+ , c :: t
+ }