[project @ 2000-10-02 16:06:48 by simonpj]
authorsimonpj <unknown>
Mon, 2 Oct 2000 16:06:48 +0000 (16:06 +0000)
committersimonpj <unknown>
Mon, 2 Oct 2000 16:06:48 +0000 (16:06 +0000)
Add check for unboxed function arguments

ghc/tests/typecheck/should_fail/tcfail087.hs [new file with mode: 0644]
ghc/tests/typecheck/should_fail/tcfail087.stderr [new file with mode: 0644]

diff --git a/ghc/tests/typecheck/should_fail/tcfail087.hs b/ghc/tests/typecheck/should_fail/tcfail087.hs
new file mode 100644 (file)
index 0000000..c81f155
--- /dev/null
@@ -0,0 +1,13 @@
+{-# OPTIONS -fglasgow-exts #-}
+
+-- !!! Check that unboxed tuples can't be function arguments
+module ShouldFail where
+
+data Ex = Ex (# Int,Int #)
+
+f :: (# Int,Int #) -> Int
+f x = error "urk"
+
+g (# x,y #) = x
+
+
diff --git a/ghc/tests/typecheck/should_fail/tcfail087.stderr b/ghc/tests/typecheck/should_fail/tcfail087.stderr
new file mode 100644 (file)
index 0000000..8d1c8b6
--- /dev/null
@@ -0,0 +1 @@