[project @ 2001-05-08 14:39:27 by simonpj]
authorsimonpj <unknown>
Tue, 8 May 2001 14:39:27 +0000 (14:39 +0000)
committersimonpj <unknown>
Tue, 8 May 2001 14:39:27 +0000 (14:39 +0000)
Add parallel list comp test

ghc/tests/typecheck/should_run/tcrun013.hs [new file with mode: 0644]
ghc/tests/typecheck/should_run/tcrun013.stdout [new file with mode: 0644]

diff --git a/ghc/tests/typecheck/should_run/tcrun013.hs b/ghc/tests/typecheck/should_run/tcrun013.hs
new file mode 100644 (file)
index 0000000..37385d9
--- /dev/null
@@ -0,0 +1,10 @@
+{-# OPTIONS -fglasgow-exts #-}
+
+-- !!! Parallel list comprehensions
+
+module Main where
+
+f xs = [ (x,y) | x <- xs, x>3 | y <- xs ]
+
+main = print (f [0..10])
+
diff --git a/ghc/tests/typecheck/should_run/tcrun013.stdout b/ghc/tests/typecheck/should_run/tcrun013.stdout
new file mode 100644 (file)
index 0000000..bb1e684
--- /dev/null
@@ -0,0 +1 @@
+[(4,0),(5,1),(6,2),(7,3),(8,4),(9,5),(10,6)]