diff options
Diffstat (limited to 'testsuite/tests/profiling/should_compile/prof002.hs')
-rw-r--r-- | testsuite/tests/profiling/should_compile/prof002.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/tests/profiling/should_compile/prof002.hs b/testsuite/tests/profiling/should_compile/prof002.hs new file mode 100644 index 0000000000..0b631bbcd2 --- /dev/null +++ b/testsuite/tests/profiling/should_compile/prof002.hs @@ -0,0 +1,17 @@ + +-- This tests trac #931 + +module Main where + +x = f [1..5] (f [2..] [3..]) + +f xs ys = l + where + l = [ if s then x else y | (x, y) <- zip xs ys ] + s = g xs ys + g [] _ = True + g _ [] = False + g (x:xs) (y:ys) = g xs ys + +main = print (show x) + |