projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35e3879
)
[project @ 1998-07-02 10:47:21 by simonm]
author
simonm
<unknown>
Thu, 2 Jul 1998 10:47:21 +0000
(10:47 +0000)
committer
simonm
<unknown>
Thu, 2 Jul 1998 10:47:21 +0000
(10:47 +0000)
Test for 'main' space leak (fixed in new RTS).
ghc/tests/codeGen/should_run/cg046.hs
[new file with mode: 0644]
patch
|
blob
diff --git a/ghc/tests/codeGen/should_run/cg046.hs
b/ghc/tests/codeGen/should_run/cg046.hs
new file mode 100644
(file)
index 0000000..
fe363d4
--- /dev/null
+++ b/
ghc/tests/codeGen/should_run/cg046.hs
@@ -0,0
+1,10
@@
+module Main where
+
+import IO
+
+--!!! CAF space leaks
+
+main = lots_of_xs 10000
+
+lots_of_xs 0 = return ()
+lots_of_xs n = putChar 'x' >> lots_of_xs (n-1)