[project @ 1998-06-01 13:06:18 by simonm]
authorsimonm <unknown>
Mon, 1 Jun 1998 13:06:20 +0000 (13:06 +0000)
committersimonm <unknown>
Mon, 1 Jun 1998 13:06:20 +0000 (13:06 +0000)
add seq test.

ghc/tests/codeGen/should_run/Makefile
ghc/tests/codeGen/should_run/cg045.hs [new file with mode: 0644]
ghc/tests/codeGen/should_run/cg045.stderr [new file with mode: 0644]

index 2d75c34..e1caa6c 100644 (file)
@@ -20,5 +20,6 @@ cg042_HC_OPTS = -fglasgow-exts
 cg016_RUNTEST_OPTS = -x 1      # should override the -x 0 above.
 cg021_RUNTEST_OPTS = +RTS -K2m
 cg025_RUNTEST_OPTS = -x 1 cg025.hs
+cg045_RUNTEST_OPTS = -x 1
 
 include $(TOP)/mk/target.mk
diff --git a/ghc/tests/codeGen/should_run/cg045.hs b/ghc/tests/codeGen/should_run/cg045.hs
new file mode 100644 (file)
index 0000000..6bff505
--- /dev/null
@@ -0,0 +1,3 @@
+module Main (main) where
+
+main = seq (error "hello world!" :: Int) (return ())
diff --git a/ghc/tests/codeGen/should_run/cg045.stderr b/ghc/tests/codeGen/should_run/cg045.stderr
new file mode 100644 (file)
index 0000000..df8bdc1
--- /dev/null
@@ -0,0 +1,2 @@
+
+Fail: hello world!
\ No newline at end of file