[project @ 2001-06-05 09:30:20 by simonpj]
authorsimonpj <unknown>
Tue, 5 Jun 2001 09:30:20 +0000 (09:30 +0000)
committersimonpj <unknown>
Tue, 5 Jun 2001 09:30:20 +0000 (09:30 +0000)
Add str002 (recursive newtype test)

ghc/tests/stranal/should_compile/str002.hs [new file with mode: 0644]
ghc/tests/stranal/should_compile/str002.stderr [new file with mode: 0644]

diff --git a/ghc/tests/stranal/should_compile/str002.hs b/ghc/tests/stranal/should_compile/str002.hs
new file mode 100644 (file)
index 0000000..65fb8a7
--- /dev/null
@@ -0,0 +1,12 @@
+-- !!! Recursive newtypes
+--     Needs -O
+-- This one made GHC < 5.00.2 go into an 
+-- infinite loop in the strictness analysier
+
+module Foo where
+
+newtype V = MkV V
+
+f :: V -> V
+f (MkV v) = v
+
diff --git a/ghc/tests/stranal/should_compile/str002.stderr b/ghc/tests/stranal/should_compile/str002.stderr
new file mode 100644 (file)
index 0000000..e69de29