From: simonpj Date: Mon, 2 Oct 2000 16:06:48 +0000 (+0000) Subject: [project @ 2000-10-02 16:06:48 by simonpj] X-Git-Tag: Approximately_9120_patches~3705 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=cc6dcd92f1f55e5f51e0e82535b3653c211caed9;p=ghc-hetmet.git [project @ 2000-10-02 16:06:48 by simonpj] Add check for unboxed function arguments --- diff --git a/ghc/tests/typecheck/should_fail/tcfail087.hs b/ghc/tests/typecheck/should_fail/tcfail087.hs new file mode 100644 index 0000000..c81f155 --- /dev/null +++ b/ghc/tests/typecheck/should_fail/tcfail087.hs @@ -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 index 0000000..8d1c8b6 --- /dev/null +++ b/ghc/tests/typecheck/should_fail/tcfail087.stderr @@ -0,0 +1 @@ +