diff options
Diffstat (limited to 'testsuite/tests/codeGen/should_run/cgrun052.hs')
-rw-r--r-- | testsuite/tests/codeGen/should_run/cgrun052.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/codeGen/should_run/cgrun052.hs b/testsuite/tests/codeGen/should_run/cgrun052.hs new file mode 100644 index 0000000000..cfce05442f --- /dev/null +++ b/testsuite/tests/codeGen/should_run/cgrun052.hs @@ -0,0 +1,13 @@ +-- !!! Caused a crash in GHC 5.04.2, fixed in CoreToStg.lhs rev. 1.98 + +data T1 = T1 +data T2 = C1 !T1 | C2 +data T3 = C3 !T2 Int + +{-# NOINLINE f #-} +f 0 = C3 (C1 T1) 42 +f n = C3 (C1 T1) n + +main = case f 23 of + C3 y z -> case y of + C1 T1 -> putStrLn "ok" |