diff options
Diffstat (limited to 'testsuite/tests/stranal/should_compile/T1988.hs')
-rw-r--r-- | testsuite/tests/stranal/should_compile/T1988.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/stranal/should_compile/T1988.hs b/testsuite/tests/stranal/should_compile/T1988.hs new file mode 100644 index 0000000000..da99806ce1 --- /dev/null +++ b/testsuite/tests/stranal/should_compile/T1988.hs @@ -0,0 +1,12 @@ +{-# OPTIONS_GHC -O2 #-} + +-- Trac #1988: this one killed GHC 6.8.2 +-- at least with -O2 + +module ShouldCompile where + +newtype CFTree = CFTree (String, [CFTree]) + +prCFTree :: CFTree -> String +prCFTree (CFTree (_,trees)) = concatMap ps trees + where ps t@(CFTree (_,[])) = prCFTree t |