summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/tests/parser/should_compile/T10379.hs9
-rw-r--r--testsuite/tests/parser/should_compile/all.T1
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/T10379.hs b/testsuite/tests/parser/should_compile/T10379.hs
new file mode 100644
index 0000000000..1eb5f96382
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/T10379.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE KindSignatures, GADTs, DataKinds, TypeOperators #-}
+module Foo where
+
+data Foo1 :: [*] -> * where
+
+-- ghc <= 7.10 reported (before "Add kind equalities to GHC"):
+--
+-- T10379.hs:9:16: parse error on input ‘]’
+data Foo2 :: ([] *) -> * where
diff --git a/testsuite/tests/parser/should_compile/all.T b/testsuite/tests/parser/should_compile/all.T
index 9446bf1cfa..6865e70c54 100644
--- a/testsuite/tests/parser/should_compile/all.T
+++ b/testsuite/tests/parser/should_compile/all.T
@@ -103,4 +103,5 @@ test('T9723b', normal, compile, [''])
test('T10188', normal, compile, [''])
test('VtaParse', normal, compile, [''])
test('T10196', normal, compile, [''])
+test('T10379', normal, compile, [''])
test('T10582', expect_broken(10582), compile, [''])