[project @ 1998-07-02 10:47:21 by simonm]
authorsimonm <unknown>
Thu, 2 Jul 1998 10:47:21 +0000 (10:47 +0000)
committersimonm <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]

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
@@ -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)