diff --git a/ghc/tests/typecheck/should_fail/tcfail087.hs b/ghc/tests/typecheck/should_fail/tcfail087.hs new file mode 100644 index 0000000000000000000000000000000000000000..c81f155d01e90345b3112deb6d9713ecdc7976a4 --- /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 0000000000000000000000000000000000000000..8d1c8b69c3fce7bea45c73efd06983e3c419a92f --- /dev/null +++ b/ghc/tests/typecheck/should_fail/tcfail087.stderr @@ -0,0 +1 @@ +