diff options
author | David Terei <davidterei@gmail.com> | 2011-07-20 11:09:03 -0700 |
---|---|---|
committer | David Terei <davidterei@gmail.com> | 2011-07-20 11:26:35 -0700 |
commit | 16514f272fb42af6e9c7674a9bd6c9dce369231f (patch) | |
tree | e4f332b45fe65e2a7a2451be5674f887b42bf199 /testsuite/tests/codeGen/should_run/cgrun052.hs | |
parent | ebd422aed41048476aa61dd4c520d43becd78682 (diff) | |
download | haskell-16514f272fb42af6e9c7674a9bd6c9dce369231f.tar.gz |
Move tests from tests/ghc-regress/* to just tests/*
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" |