From cc6dcd92f1f55e5f51e0e82535b3653c211caed9 Mon Sep 17 00:00:00 2001 From: simonpj <unknown> Date: Mon, 2 Oct 2000 16:06:48 +0000 Subject: [PATCH] [project @ 2000-10-02 16:06:48 by simonpj] Add check for unboxed function arguments --- ghc/tests/typecheck/should_fail/tcfail087.hs | 13 +++++++++++++ ghc/tests/typecheck/should_fail/tcfail087.stderr | 1 + 2 files changed, 14 insertions(+) create mode 100644 ghc/tests/typecheck/should_fail/tcfail087.hs create mode 100644 ghc/tests/typecheck/should_fail/tcfail087.stderr diff --git a/ghc/tests/typecheck/should_fail/tcfail087.hs b/ghc/tests/typecheck/should_fail/tcfail087.hs new file mode 100644 index 000000000000..c81f155d01e9 --- /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 000000000000..8d1c8b69c3fc --- /dev/null +++ b/ghc/tests/typecheck/should_fail/tcfail087.stderr @@ -0,0 +1 @@ + -- GitLab