summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/T23307c.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/simplCore/should_compile/T23307c.hs')
-rw-r--r--testsuite/tests/simplCore/should_compile/T23307c.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/simplCore/should_compile/T23307c.hs b/testsuite/tests/simplCore/should_compile/T23307c.hs
new file mode 100644
index 0000000000..a0d4de1cfa
--- /dev/null
+++ b/testsuite/tests/simplCore/should_compile/T23307c.hs
@@ -0,0 +1,7 @@
+module Foo where
+
+newtype Identity x = MkId x
+newtype Fix f = MkFix (f (Fix f))
+
+-- This test just checks that the compiler itself doesn't loop
+data Loop = LCon {-# UNPACK #-} !(Fix Identity)